I am having an issue with an If-Then statement that is based on the selection of an option (radio) button. The radio buttons are named: rdoSingle and rdoCompleteSet. They are in a frame named: SearchOptions. I keep getting " Run-time error:2427 You entered an expression that has no value." on the If statement.
Here is the code:
If rdoSingle.Value = True Then
Select Case Me.cboFieldID.Value
Case "Work Order #"
strSQL = "SELECT RCAData.[WorkOrderNo] FROM RCAData ORDER BY RCAData.[WorkOrderNo] ASC;"
DoCmd.RunSQL strSQL
Me!cboIDNo.RowSource = strSQL
It contains several more Case statements. Do I need to declare the buttons or group somewhere. If so, how? I can't find anything useful searching google. Any help would be greatly appreciated.