Thank you John but I did ask

> How can I get a count/list of the tables excluding the system tables 
> (without iterating all of them to exclude the system tables) ?
>
>   



john harvey wrote:
> I just checked the code in Access 2007 and found they are using 0 based
> arrays, so modify the code to the following:
> oAcc = CREATEOBJECT("Access.Application")
> lcmdb=GETFILE('mdb')
> oAcc.OpenCurrentDatabase(lcmdb)
> LOCAL lnTables
> lnTables = oAcc.CurrentData.AllTables.Count 
> FOR i = 0 TO lntables-1
>  lctable=oacc.CurrentData.AllTables(i).name
>  IF OCCURS('MSys',lctable)=0
>   ?lctable
>  endif
> endfor
>
>   




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to