Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / December 2005

Tip: Looking for answers? Try searching our database.

tabledefs and linked tables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mcourter@mindspring.com - 20 Dec 2005 13:44 GMT
how can i get this code to include linked tables?

For i = 0 To dbs.TableDefs.Count - 1
  If dbs.TableDefs(i).Attributes = 0 Then
     cbxChooseTable.AddItem dbs.TableDefs(i).Name
  End If
Next i
mcourter@mindspring.com - 20 Dec 2005 14:22 GMT
i modified this way and it works:

Or dbs.TableDefs(i).Attributes = 1073741824

i want to skip over sys files.
is there a better way (besides using instr)?
Douglas J. Steele - 20 Dec 2005 15:07 GMT
For i = 0 To dbs.TableDefs.Count - 1
  If (dbs.TableDefs(i).Attributes And dbSystemObject) = 0 Then
     cbxChooseTable.AddItem dbs.TableDefs(i).Name
  End If
Next i

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

>i modified this way and it works:
>
> Or dbs.TableDefs(i).Attributes = 1073741824
>
> i want to skip over sys files.
> is there a better way (besides using instr)?
mcourter@mindspring.com - 20 Dec 2005 16:00 GMT
wow.
slick.
thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.