I have a form that according to my code, checks to see if there are any items needed to be passed in the Me.OpenArgs argument. If there is nothing to be passed, then it should be a new record. Unfortunately, my program does not work as planned. I get an error of the following:
Run-time error: '30010':
Cannot apply filter on one or more fields specified in the Filter property.
Below is the sub of code that I have used for this open event:
Private Sub Form_Open(Cancel As Integer)
If Me.OpenArgs = Null Or Me.OpenArgs = "" Or Me.OpenArgs = " " Then
DoCmd.GoToRecord acActiveDataObject, , acNewRec