Optiongroup

kentendresen

Registered User.
Local time
Today, 20:31
Joined
Nov 13, 2002
Messages
49
Somebody who can 'translate' this into a vb code?

If Record = New Then
Optiongroup = Null

I want the optiongroup to be 'grey' every time I go to a new record (blank form), but not when I enter a form where the optiongroup already has been used.
 
Try this in the forms OnCurrent event...

If Me.NewRecord Then
Me.OptionGroupname.Enabled = False
Else
Me.OptionGroupname.Enabled = True
End If

HTH
 
No, it didn't work...

The whole optiongroup got disabled, and it was not possible to mark one option in the optiongroup...

But thank you for the support!

More ideas? ;)
 
Wasn't everything turned grey as you asked? :D

Try this...

If Me.NewRecord Then
Me.OptionGroupName.Value = Null
Else
'do nothing
End If

HTH
 

Users who are viewing this thread

Back
Top Bottom