G
Guest
I know this must come up often, but I can't find the answer. The following
code produces a data type mismatch for the obvious reason in the Filter
argument: DonorID is something like "13456" and EndwID is like "F0016548." I
don't know how to strip the quotes. Is there a better variable type for this?
Dim DonorID, EndwID As String
With Forms!SwitchboardNew!DonorSubFrm
DonorID = !DonANDI
EndwID = !MchDonFNo
End With
Me.Filter = "MchDonANDI = DonorID" And "MchDonFNo = EndwID"
Me.FilterOn = True
Thanks in advance.
code produces a data type mismatch for the obvious reason in the Filter
argument: DonorID is something like "13456" and EndwID is like "F0016548." I
don't know how to strip the quotes. Is there a better variable type for this?
Dim DonorID, EndwID As String
With Forms!SwitchboardNew!DonorSubFrm
DonorID = !DonANDI
EndwID = !MchDonFNo
End With
Me.Filter = "MchDonANDI = DonorID" And "MchDonFNo = EndwID"
Me.FilterOn = True
Thanks in advance.