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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Type Problem in query 1

Status
Not open for further replies.

baybook

MIS
Sep 16, 2004
66
US
I'm having a brain freeze. This query is not working and I know I'm using the wrong format

dim somenumber

queryreg = "select * from Quote where quote_id ="&somenumber&""

Can someone tell me what I am not seeing as I've tried several variations.

Thanks!!!!
 
Try this:

queryreg = "select * from Quote where quote_id ="&somenumber

-L
 
if somenumber is just a number then the above query should work...but if it also contains some characters then try...

queryreg = "select * from Quote where quote_id ='"&somenumber&"' "

-L
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top