Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

WORD and ACCESS

Status
Not open for further replies.

insanewillem

Computer
Aug 2, 2001
1
Hi,

I made an VBA app. so I can extract data from a access table through SQL.

But I need to read the tables from the database, but I don't really know the command for this...

can anybody help me?

AND...

If I do something like this:

query = "Select name from tablename where LIKE 'test*'"
Set MyRS = MyDB.OpenRecordset(query)

FormSelect.ListBoxMatches.AddItem MyRS.Fields(0)

And the RS = empty I get a Error message...

Is it possible to catch it an just clear the listbox?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor