I’m having difficulty validating a group of radio buttons, this is the code I’m using right now but I keep getting the error message: Runtime error 438 - Object doesn't support this property or method.
This is the code that is causing the problem.
For Each ctl In Me.frPriority.Controls
If ctl.Value = True Then GoTo nxtCheck1
Next
MsgBox "You didn't select a priority"
Exit Sub
nxtCheck1:
The line causing all the trouble is
If ctl.Value = True Then
How can I resole this problem?
If you have non-option buttons control types in your frame, use this, checking for the control type first.