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 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
Joined
Aug 2, 2001
Messages
1
Location
NL
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

Back
Top