Really easy I'm sure... 
Author Message
 Really easy I'm sure...

G'day people.  I'm a newbie to all this and my problem is probably the most
basic there is.  (Please don't laugh).

I am using VB5.0 as a front end for a MS Access 97 database.  I am trying to
search by a ID no and then extract the text in another field of that record.
How do I get the SQL to work?

My version didn't have proper help files but it is still the Enterprise Ed.

Thanks
Matt



Wed, 09 Jan 2002 03:00:00 GMT  
 Really easy I'm sure...

Quote:
> search by a ID no and then extract the text in another field of that
record.
> How do I get the SQL to work?

Use something similar to :-

"SELECT [TextFieldName] FROM [TableName] WHERE [ID] LIKE '" & SearchCriteria
& "*'"

This will search the table for the id code starting with the selection
criteria and return only the textfield that you require.

Hope this helps.

Regards

Ian Ashworth



Fri, 11 Jan 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. I'm sure that this is an easy question

2. A very easy question - I'm sure

3. A very easy question - I'm sure

4. Easy question I'm sure - never written vbscript before

5. simple I'm sure but I can't crak it

6. static array, i'm sure it's possible

7. Really easy I think

8. This should be really easy!

9. IS VB REALLY EASY TO LEARN??

10. IS VB REALLY EASY TO LEARN??

11. Really easy Questions

12. really easy VBA question!

 

 
Powered by phpBB® Forum Software