J
Jason Gyetko
How do I prompt the user from an SQL statement in VBA? It works if I put it
in an actual access query. Given the example below, I want an "Enter PO"
prompt to pop up so a PO# can be entered, can this be done or do I have to
pop up a form and pull the data from a text box on it? Thanks in advance.
Set rs = db.OpenRecordset _
("SELECT tblBase.ProdID, tblBase.MSDS " & _
"FROM tblPickList INNER JOIN tblBase ON tblPickList.PIitem =
tblBase.ProdID " & _
"WHERE (((tblPickList.PIpo) = """ & [Enter PO] & """)) " & _
"GROUP BY tblBase.ProdID, tblBase.MSDS;")
in an actual access query. Given the example below, I want an "Enter PO"
prompt to pop up so a PO# can be entered, can this be done or do I have to
pop up a form and pull the data from a text box on it? Thanks in advance.
Set rs = db.OpenRecordset _
("SELECT tblBase.ProdID, tblBase.MSDS " & _
"FROM tblPickList INNER JOIN tblBase ON tblPickList.PIitem =
tblBase.ProdID " & _
"WHERE (((tblPickList.PIpo) = """ & [Enter PO] & """)) " & _
"GROUP BY tblBase.ProdID, tblBase.MSDS;")