Need help with Syntax

  • Thread starter Thread starter mattc66 via AccessMonster.com
  • Start date Start date
M

mattc66 via AccessMonster.com

Would this be the proper syntax if PO_NO is a text feild?

Set rs1 = db.OpenRecordset("select * from tblPODetail where PO_NO = " + CStr
(PO_NO))

Thanks
Matt
 
Almost
Set rs1 = db.OpenRecordset("select * from tblPODetail where PO_NO = '" + CStr
(PO_NO) & "';")
 
Back
Top