|
-
Feb 27th, 2007, 08:27 AM
#1
Thread Starter
Addicted Member
problem with a query
Help,
Code:
Rstring = "select * from `custmers`"
DBr.Open Rstring
what is the problem here??
i see no problem and the softwere says its illegle.
-k3pos
-
Feb 27th, 2007, 09:39 AM
#2
Hyperactive Member
Re: problem with a query
Your SQL string should be...
Rstring = "select * from custmers"
assuming also that that is the way you spell customers.
You use ' marks in most SQL queries to show text values, for example
Code:
Rstring = "SELECT * FROM custmers WHERE custmer_name = 'Jones' "
-
Feb 27th, 2007, 09:51 AM
#3
Re: problem with a query
If you are using ADO, you need to add the connection object
Code:
Rstring = "select * from `custmers`"
DBr.Open Rstring, ConnObjectGoesHere
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|