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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loop thru tabledefs in CurrentDb 1

Status
Not open for further replies.

biot023

Programmer
Nov 8, 2001
403
0
0
GB
Hallo.
Does anyone know how to loop through the tabledefs in the current database?
I tried

Dim tbl as Tabledef
For Each tbl in Currentdb
...
Next

but it says that the object (tbl or CurrentDb) does not support this operation.
Is there another way, or am I just totally misunderstanding the whole For Each... Next thing?

Cheers,
Douglas JL

If it don't make you laugh, it ain't true.
 
just add .tabledefs onto the currentdb. :)

It will then look like:

For Each tbl in Currentdb.tabledefs

.....


Next

Hope this helps

Ian
 
Simple (I can understand it) & effective (it works)!

Thanks alot, man!

Douglas If it don't make you laugh, it ain't true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top