Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select statement

Status
Not open for further replies.

shaz123

Technical User
Oct 13, 2006
60
DE
Hi this is a quick one,
i wanted to add this line of code to the select statement, however im getting this error message.

"Expected list or Seperator )"


Code:
 Set rs = db.OpenRecordset("SELECT * From tbl_Delupdate WHERE tbl_Delupdate.[Cylinder Barcode Label]= '" & stringy1 & "' AND _ 
tbl_Delupdate.[Works Order Number] = person.Text And [D Status] = 'Delivered' ")

I think my mistake is "tbl_Delupdate.[Works Order Number] = person.Text "
i am trying to refer to a listbox on the form.

Any ideas
How would be able to see what the result of the select statment is
 
Set rs = db.OpenRecordset("SELECT * From tbl_Delupdate WHERE tbl_Delupdate.[Cylinder Barcode Label]= '" & stringy1 & "' AND &
_
tbl_Delupdate.[Works Order Number] = person.Text And [D Status] = 'Delivered' ")

Let them hate - so long as they fear... Lucius Accius
 
shaz123 . . .

[blue]person.text should have single quotes[/blue] incorperated . . . yes?

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top