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