473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

List of all table names beginning with "ABCDE"

MLH
I have an Access 2.0 app I still use.
How best can I list all tables in a combo-
box on an Access 2.0 form - just tables
beginning with "ABCDE"? Bear in mind
that I'm adding new tables to the app
frequently - the method would have to
be dynamic rather than static.
Jun 30 '06 #1
5 4152
Set the RowSource of the combo to this query statement:

SELECT MsysObjects.[Name] FROM MsysObjects
WHERE ((MsysObjects.[Type] IN (1, 4, 6))
AND ([Name] Like "ABCDE*"))
ORDER BY MsysObjects.[Name];

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"MLH" <CR**@NorthState.net> wrote in message
news:cc********************************@4ax.com...
I have an Access 2.0 app I still use.
How best can I list all tables in a combo-
box on an Access 2.0 form - just tables
beginning with "ABCDE"? Bear in mind
that I'm adding new tables to the app
frequently - the method would have to
be dynamic rather than static.

Jun 30 '06 #2
Allen Browne <Al*********@SeeSig.Invalid> wrote:
: Set the RowSource of the combo to this query statement:

: SELECT MsysObjects.[Name] FROM MsysObjects
: WHERE ((MsysObjects.[Type] IN (1, 4, 6))
: AND ([Name] Like "ABCDE*"))
: ORDER BY MsysObjects.[Name];

I've been able to find that Types 1 and 6 refer to tables and
attached tables respectively, but I haven't seen any mention of a Type
4. What is it and where can I find a complete definition of the
MsysObjects table?

thanks, --thelma
: --
: Allen Browne - Microsoft MVP. Perth, Western Australia.
Jun 30 '06 #3
I understand that 4 is used for ODBC linked tables.

5 = queries.
-32768 = forms
-32764 = reports
-32761 = modules.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Thelma Lubkin" <th****@alpha2.csd.uwm.edu> wrote in message
news:e8**********@uwm.edu...
Allen Browne <Al*********@SeeSig.Invalid> wrote:
: Set the RowSource of the combo to this query statement:

: SELECT MsysObjects.[Name] FROM MsysObjects
: WHERE ((MsysObjects.[Type] IN (1, 4, 6))
: AND ([Name] Like "ABCDE*"))
: ORDER BY MsysObjects.[Name];

I've been able to find that Types 1 and 6 refer to tables and
attached tables respectively, but I haven't seen any mention of a
Type
4. What is it and where can I find a complete definition of the
MsysObjects table?

thanks, --thelma
: --
: Allen Browne - Microsoft MVP. Perth, Western Australia.

Jun 30 '06 #4
MLH
Thanks. That worked GREAT!
Jul 1 '06 #5
"Thelma Lubkin" <th****@alpha2.csd.uwm.edu> wrote
4. What is it and where can I find a
complete definition of the
MsysObjects table?


It is one of Access' System Tables, which you can set an option to display,
but which you aren't allowed to update. It is officially undocumented.

Various users have figured out much of its structure and values, some of
which has been published "unofficially" by those users. But, be aware that
the System Tables have changed to some extent in every version of Access, so
what works today may not work when the next version is released.
Jul 1 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
by: baumann.Pan | last post by:
hi all, i want to get the address of buf, which defined as char buf = "abcde"; so can call strsep(address of buf, pointer to token);
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.