tabledefs and linked tables

  • Thread starter Thread starter mcourter
  • Start date Start date
M

mcourter

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
 
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)?
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top