Hi, The code below throws up an error every time it is run:
strSQL = ("SELECT TblPcrMain WHERE TblPcrMain.ProjectNo = '" & strProj & "' AND TblPcrMain.PcrNo =" & intPcr)
The error is "Syntax error (missing operator) in..."
I have checked and checked it and i cant see anythign wrong with it. Im starting to think im going crazy. I have taught myself access, so i might be missing something vital so any help would be greatly appreciated before my computer gets flung across the room!
Thank you
strSQL = ("SELECT TblPcrMain WHERE TblPcrMain.ProjectNo = '" & strProj & "' AND TblPcrMain.PcrNo =" & intPcr)
The error is "Syntax error (missing operator) in..."
I have checked and checked it and i cant see anythign wrong with it. Im starting to think im going crazy. I have taught myself access, so i might be missing something vital so any help would be greatly appreciated before my computer gets flung across the room!
Thank you