siebel2002
Programmer
Hi gurus:
I am getting an error "You Cancelled the previous operation" when I run the following code. It does pull in the value for GetFirmID and GetContacID from the global module, but it still gives the nasty error.. please help!
I have left the Record Source property in the form's design view blank. It runs OK on the query design grid when I input the value of [User Fields 1] & [User Field 2] in the criteria row!
Private Sub Form_Open(Cancel As Integer)
Me.RecordSource = "SELECT * From Contacts Where [User Field 1] = " & GetFirmID & " And [User Field 2] = " & GetContactID
End Sub
Thank you so much
I am getting an error "You Cancelled the previous operation" when I run the following code. It does pull in the value for GetFirmID and GetContacID from the global module, but it still gives the nasty error.. please help!
I have left the Record Source property in the form's design view blank. It runs OK on the query design grid when I input the value of [User Fields 1] & [User Field 2] in the criteria row!
Private Sub Form_Open(Cancel As Integer)
Me.RecordSource = "SELECT * From Contacts Where [User Field 1] = " & GetFirmID & " And [User Field 2] = " & GetContactID
End Sub
Thank you so much