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) & "';")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top