I am trying to use the Option Button on a form. I have never used this before and I am experiencing some trouble.
I have two options, one is to be used to "export only new records" and the other is to "re-export".
The default setting for the when the form is first opened should have "export only new records" selected.
Code that I am trying to use:
Private Sub Form_Load()
'When form loads, select the new records option button as default
Me.New_Records_Option.Value = True
End Sub
However, this results in a run time error stating the value can not be assigned. Any ideas?
After this, I would like to use the option button as a trigger, to either export only new records or to re-export.
Code:
If New_Records_Option.Value = True Then
'Export Only New Records
Else
'Export all records
EndIf
Any help is appreciated
I have two options, one is to be used to "export only new records" and the other is to "re-export".
The default setting for the when the form is first opened should have "export only new records" selected.
Code that I am trying to use:
Private Sub Form_Load()
'When form loads, select the new records option button as default
Me.New_Records_Option.Value = True
End Sub
However, this results in a run time error stating the value can not be assigned. Any ideas?
After this, I would like to use the option button as a trigger, to either export only new records or to re-export.
Code:
If New_Records_Option.Value = True Then
'Export Only New Records
Else
'Export all records
EndIf
Any help is appreciated