I am trying to open a form using two criterias. I am getting type mismatch which means I am obviously doing something wrong. Please help!!! This is the code that I have:
DoCmd.OpenForm "F-Duplicate record search", , , ("[rel#] = '" & strinput & "'" Or "[secondrelno] = '" & strinput & "'")
The strinput is value of an input box.
Thanks.
DoCmd.OpenForm "F-Duplicate record search", , , ("[rel#] = '" & strinput & "'" Or "[secondrelno] = '" & strinput & "'")
The strinput is value of an input box.
Thanks.