A
Allen Browne
Try this query in the RowSource of your combo:
SELECT MsysObjects.Name FROM MsysObjects
WHERE (([Type] = 1) AND ([Name] Not Like "~*") AND ([Name] Not Like
"MSys*"))
ORDER BY MsysObjects.Name;
You can turn it into an Append query (Append on Query menu from query
design) if you wish.
Add Type 6 if you want the linked tables as well, type 4 for ODBC linked
tables.
If you prefer to use code, try:
If (tdf.Attributes And dbSystemObject) = 0 Then
SELECT MsysObjects.Name FROM MsysObjects
WHERE (([Type] = 1) AND ([Name] Not Like "~*") AND ([Name] Not Like
"MSys*"))
ORDER BY MsysObjects.Name;
You can turn it into an Append query (Append on Query menu from query
design) if you wish.
Add Type 6 if you want the linked tables as well, type 4 for ODBC linked
tables.
If you prefer to use code, try:
If (tdf.Attributes And dbSystemObject) = 0 Then