| | |
|
|
|
Option Button |
| message from =?Utf-8?B?SmVubnk=?= on 25 May 2004 |
I have 2 option buttons. How can I make the first button default on when the form is loaded? Many thanks.
|
| Arvin Meyer replied to =?Utf-8?B?SmVubnk=?= on 25 May 2004 |
the form is loaded? Many thanks.
Alittle code in the form's load event:
Private Sub Form_Load()
Me.tglButton1 = True
End Sub
|
| =?Utf-8?B?SmVubnk=?= replied to Arvin Meyer on 25 May 2004 |
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 Sub
|
| Pieter Wijnen replied to =?Utf-8?B?SmVubnk=?= on 25 May 2004 |
"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" <anonymous@discussions.microsoft.com> wrote in message
news:ADFAB8FB-544D-40D0-B8D1-B4B6DFCCE8F7@microsoft.com...
am using "Me!" but you use "Me." It seems both are working fine. I wonder
if there is any different between them.
|
| =?Utf-8?B?SmVubnk=?= replied to Pieter Wijnen on 26 May 2004 |
Hi Pieter, actually I tried "!" and ".". Access evaluates both and interprets correctly as
being an "alias" for True (numeric value -1).
|
|
Archived message: Option Button (MS Access Forms)