Hi guys,
I have a Button and a radio button. The scenario is very simple.
Everytime I click the Button (Apply), my code should check If the Radio button = True Then Execute a Query.
So I wrote this :
I receive the following error:
Run time error 91
Object variable or With block variable not set
Any ideas ?
How is the correct syntax for an Option Button ?
Thanx in advance.
I have a Button and a radio button. The scenario is very simple.
Everytime I click the Button (Apply), my code should check If the Radio button = True Then Execute a Query.
So I wrote this :
PHP:
Dim strSQL As String
Dim Arial_f As OptionButton
If Arial_f.Enabled = True Then
strSQL = "UPDATE Settings SET fontname= 1"
DoCmd.RunSQL strSQL
End If
I receive the following error:
Run time error 91
Object variable or With block variable not set
Any ideas ?
How is the correct syntax for an Option Button ?
Thanx in advance.