Pass value of option button

S

singeredel

Can anyone tell me what is wrong with this code? I am trying to pass the
value of the option button as yes (or no) to a userform. The spin button
values pass, but not the option button value.

With Normal.ReportFormQTCTest

optQuadisYes.Value = True

.spnScheduleDateMonth.Value = 3
.spnScheduleDateDay.Value = 8
.spnScheduleDateYear.Value = 2005
.cmbClinicLocation.Value = "010"
.cmbDoctorName.Value = "Bleecker"
.cmbClinicName.Value = "QTC"
.Show

End With

Thanks!
 
J

Jean-Guy Marcil

singeredel was telling us:
singeredel nous racontait que :
Can anyone tell me what is wrong with this code? I am trying to pass
the value of the option button as yes (or no) to a userform. The spin
button values pass, but not the option button value.

You forgot a "." (Period) just before optQuadis.... ?
With Normal.ReportFormQTCTest

optQuadisYes.Value = True

.spnScheduleDateMonth.Value = 3
.spnScheduleDateDay.Value = 8
.spnScheduleDateYear.Value = 2005
.cmbClinicLocation.Value = "010"
.cmbDoctorName.Value = "Bleecker"
.cmbClinicName.Value = "QTC"
.Show

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
S

singeredel

Thank you! You are so right! Doh!

Jean-Guy Marcil said:
singeredel was telling us:
singeredel nous racontait que :


You forgot a "." (Period) just before optQuadis.... ?


--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
J

Jonathan West

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top