G
Guest
The below setups a filter from user input on a form. Customer Number and
Expiration Date.
Dim stCustomerNo As String
Dim stLinkCriteria As Variant
strExpireDate = "#" & ExpireDate & "#"
stCustomerNo = Forms!frmPermitRenewals!CustomerNo
stLinkCriteria = "[CustomerNo]=" & stCustomerNo And
"PermitExpireDate = " & strExpireDate
Me.Filter = stLinkCriteria
I am receiving a "Run-time error 13 - Type Mismatch
What is the correct sytax for this expression
Expiration Date.
Dim stCustomerNo As String
Dim stLinkCriteria As Variant
strExpireDate = "#" & ExpireDate & "#"
stCustomerNo = Forms!frmPermitRenewals!CustomerNo
stLinkCriteria = "[CustomerNo]=" & stCustomerNo And
"PermitExpireDate = " & strExpireDate
Me.Filter = stLinkCriteria
I am receiving a "Run-time error 13 - Type Mismatch
What is the correct sytax for this expression