I am trying to open a form based on the record set of the current form. The form I am opening should filtered based on a text field and a date field. The code I am using is as follows:
When I run the code I receive the error message "Run-time error '13': Type mismatch".
When I hover over the arguments in debug mode the data is correct. What is causing this error message??
Thanks
Code:
Private Sub Command100_Click()
If Not Me.NewRecord Then
DoCmd.OpenForm "FrmPulls", , , "[TEXT]='" & Me!TEXT & "'" And "[DATE]=#" & Me!DATE & "#", , acWindowNormal
End If
End Sub
When I hover over the arguments in debug mode the data is correct. What is causing this error message??
Thanks
Comment