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!

Find Records in Access DB

Status
Not open for further replies.

ppedersen1

Technical User
Oct 14, 2002
43
US
H-E-L-L-O. I am creating a program which pulls data out of an Access database. I want to use automation to search the records using the search function in Access. I don't know the correct function to use and how to say it. But I know how to set the preferences, there are just too many "find" options in the Object Browser. Any help would be appreciated.
 
Are you wanting to do this in VB 5/6 with an external Access database?

If so, it's not so hard... Assuming this is a newer version of Access, use ADO. The fastest way would be to add an ADO data control to your form, connect it to the database using the ConnectionString property. The dialog will allow you to choose an ODBC source or build a connection string choose the appropriate Jet Driver (it will list many drivers, most likely you'll use Jet 4)... next you'll be given a dialog to browse for the access database.

you'll be able to build your simple sql string to query the database. MS provides excellent help for this, hit F1 and search for ADO. Tuna - It's fat free until you add the Mayo!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top