Option Button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 2 option buttons. How can I make the first button default on when the form is loaded? Many thanks.
 
I changed but got a error message. I try below and seems is working. I am using "Me!" but you use "Me." It seems both are working fine. I wonder if there is any different between them

Private Sub Form_Load(
Me!tglButton1.DefaultValue = "Yes
End Su
 
"yes" is not recognized as an allowed value for the actual control's value
property (used when referencing it with .)
when you use ! access evaluates it for you and interprets it (correctly) as
beeing an "alias" for True (numeric value -1)

HTH
Pieter

Jenny said:
I changed but got a error message. I try below and seems is working. I
am using "Me!" but you use "Me." It seems both are working fine. I wonder
if there is any different between them.
 
Hi Pieter, actually I tried "!" and ".". Access evaluates both and interprets correctly a
being an "alias" for True (numeric value -1)
 
Back
Top