|
-
Aug 26th, 2004, 08:44 AM
#1
Thread Starter
Addicted Member
[RESOLVED]retrieving data from the database using SQL query
I have a form that retrieves data from the database and shows the record fields in text boxes...
I have retrieved data using the properties window.... I called the datasource the reuiqred database and have assiged a datafield...this works expect it returns the first record in the table...I want it to return the data for a certain ID no (which is in textbox 'IDtxt' on the form)
So I created the following query with in the command:
SELECT * FROM customer WHERE (customerID = 'frmUpdate.IDtxt.Text')
this does not work however if I change 'frmUpdate.IDtxt.Text ' to 2 it does work and returns the 2 record in the table...
what am I doing wrong in the above query?????
Last edited by pame1a; Aug 26th, 2004 at 08:07 PM.
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
|