473,466 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

query list

Hi,

The following will generate a list of all tables and queries froma db:

SELECT MSysObjects.Type, MSysObjects.Name, MSysObjects.DateCreate,
MSysObjects.DateUpdate
FROM MSysObjects
WHERE (((MSysObjects.Type)=1 Or (MSysObjects.Type)=5) AND
((Left([name],4))="MSys"))
ORDER BY MSysObjects.Type, MSysObjects.DateCreate;
I just wanted to know if there is a way to have the type of query
(append, update, etc) on the list? Any hint ?

Thank you in advance
Gabriel
Nov 13 '05 #1
2 1873
"Gabriel" <ga*************@yahoo.com> wrote in message
news:3a**************************@posting.google.c om...
Hi,

The following will generate a list of all tables and queries froma db:

SELECT MSysObjects.Type, MSysObjects.Name, MSysObjects.DateCreate,
MSysObjects.DateUpdate
FROM MSysObjects
WHERE (((MSysObjects.Type)=1 Or (MSysObjects.Type)=5) AND
((Left([name],4))="MSys"))
ORDER BY MSysObjects.Type, MSysObjects.DateCreate;
I just wanted to know if there is a way to have the type of query
(append, update, etc) on the list? Any hint ?

Thank you in advance
Gabriel

I think you will need to try another approach such as using the DAO.QueryDef
object so you can inspect the .SQL property of each query.
Nov 13 '05 #2
ga*************@yahoo.com (Gabriel) wrote in message news:<3a**************************@posting.google. com>...
Hi,

The following will generate a list of all tables and queries froma db:

SELECT MSysObjects.Type, MSysObjects.Name, MSysObjects.DateCreate,
MSysObjects.DateUpdate
FROM MSysObjects
WHERE (((MSysObjects.Type)=1 Or (MSysObjects.Type)=5) AND
((Left([name],4))="MSys"))
ORDER BY MSysObjects.Type, MSysObjects.DateCreate;
I just wanted to know if there is a way to have the type of query
(append, update, etc) on the list? Any hint ?

Thank you in advance
Gabriel


Short of your creating prefixes for them when you name your queries,
no. Otherwise, you'll have to do what Eric said. (I'd almost swear
that's DM in disguise...) You could loop through the QueryDefs
collection, pass the SQL property to a function, parse it a little
inside the function and then return a query type. Not the most
scientific, but it should get you started. Might be worthwhile if you
have a zillion queries to catalog. Definitely a time to use some kind
of naming conventions... especially when you have a lot of objects.
Nov 13 '05 #3

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

Similar topics

0
by: John Macon | last post by:
------=_NextPart_000_04B4_01C36308.415CE100 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, Long time reader, first time poster, I hope...
3
by: Nick Truscott | last post by:
<? // scoreinput.php - input a match score when match selected from list ?> <html> <head> <basefont face="Verdana"> </head> <body>
3
by: John young | last post by:
I have been looking for an answer to a problem and have found this group and hope you can assist . I have been re doing a data base I have made for a car club I am with and have been trying to...
2
by: ormy28 | last post by:
I really need some help with the following problem if anyone would be willing. I need a list box to list the opposite of what appears in a query. Heres the details: My database is for a...
0
by: starace | last post by:
I have designed a form that has 5 different list boxes where the selections within each are used as criteria in building a dynamic query. Some boxes are set for multiple selections but these list...
2
by: Zlatko Matić | last post by:
Hello. How to reference selected values from a multi-select list box, as a criteria in a query ? Is it possible at all? Regards, Zlatko
36
by: Liam.M | last post by:
hey guys, I have one last problem to fix, and then my database is essentially done...I would therefore very much appreciate any assistance anyone would be able to provide me with. Currently I...
0
by: Chuck36963 | last post by:
Hi all, I've been working on a listing problem and I can't figure out how to work it out. I have looked far and wide on the web to find answers, but I'd like other peoples input on my project in...
3
by: rhobson2 | last post by:
Hello, I wrote a database applicaiton using Access XP (2002) and everything has been working good for the client until they purchased a couple of new computers with Access 2003. The meetings...
1
by: Nettle | last post by:
Purpose: This is a Distribution List database. Function: Users create many different email distribution lists, tailoring each to fit their specific needs Wanted: Users can combine...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.