473,473 Members | 2,153 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Automating queries

Just started working in Access, and while I'm fairly confident in the
basics, or so I think, anything advanced doesn't work too well. I've
got a task I know should be easy to automate, but I don't know how to.
If someone could point me in the right direction it would be wonderful.

I've got 35 tables to create by running a query that filters a table
based on two criteria, and then names them based on the criteria used.

I have a table of the different combinations.
ie.
A 1
A 2
A 3
B 1
B 2
B 3
B 4
C 2
C 3
C 4
.... .and so on to the 35 diff combinations.

Each table would be named "A 1", "A 2", etc, and all the other data
appears, but the two filtered criteria dont.

This is ridiculously tedious, and while I'm happy in VBA in Excel, I've
never touched it in Access, is there any "easy" way of automating this?
(preferably without VBA, but if there isn't a way to do it wihtout VBA,
then please do post it).

Jun 21 '06 #1
4 1613
I've got 35 tables to create by running a query that filters a table
based on two criteria, and then names them based on the criteria used.


STOP. Just base your queries on the table and then use them instead of
the table in whatever you're doing.

Jun 21 '06 #2
Do you absolutely have to create new tables? Could you not just use queries
in place of these filtered tables, or even a parameter query that asks you
for a letter and a number when you open it?
for example:
Select * from myTable where field1= [enter letter] and field2=[enter number]

"access-newb" <sm****@frink.nuigalway.ie> wrote in message
news:11**********************@r2g2000cwb.googlegro ups.com...
Just started working in Access, and while I'm fairly confident in the
basics, or so I think, anything advanced doesn't work too well. I've
got a task I know should be easy to automate, but I don't know how to.
If someone could point me in the right direction it would be wonderful.

I've got 35 tables to create by running a query that filters a table
based on two criteria, and then names them based on the criteria used.

I have a table of the different combinations.
ie.
A 1
A 2
A 3
B 1
B 2
B 3
B 4
C 2
C 3
C 4
... .and so on to the 35 diff combinations.

Each table would be named "A 1", "A 2", etc, and all the other data
appears, but the two filtered criteria dont.

This is ridiculously tedious, and while I'm happy in VBA in Excel, I've
never touched it in Access, is there any "easy" way of automating this?
(preferably without VBA, but if there isn't a way to do it wihtout VBA,
then please do post it).

Jun 21 '06 #3

John Welch (remove remove) wrote:
Do you absolutely have to create new tables? Could you not just use queries
in place of these filtered tables, or even a parameter query that asks you
for a letter and a number when you open it?
for example:
Select * from myTable where field1= [enter letter] and field2=[enter number]


I need seperate tables for these, as they are then used in different
programs that require that naming convention for all different tables.

Jun 21 '06 #4
"access-newb" <sm****@frink.nuigalway.ie> wrote in
news:11**********************@p79g2000cwp.googlegr oups.com:

John Welch (remove remove) wrote:
Do you absolutely have to create new tables? Could you not
just use queries in place of these filtered tables, or even a
parameter query that asks you for a letter and a number when
you open it? for example:
Select * from myTable where field1= [enter letter] and
field2=[enter number]


I need seperate tables for these, as they are then used in
different programs that require that naming convention for all
different tables.

No, you just need to name your queries according to the
requirements.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jun 21 '06 #5

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

Similar topics

7
by: Limey Drink | last post by:
Hi all, Firstly :-) , is there any where I can search through archived newsgroup posts so I am not cluttering up the newsgroup with repeated queries ? And secondly :-), I know this has...
7
by: xzzy | last post by:
I need to automate a report in a different database (and thank yous to Terry Kreft for pointing me in the right direction). below is the code with the one line that does not work, marked: 'Does...
1
by: EnriqueM | last post by:
One question: I created an access database that has been extremely useful in my work. I dont' even know at what level of knowledge I am at. I read a lot about how to create a database, created many...
2
by: jmev7 | last post by:
Any way to avoid having to manually enter my user name & password for the Oracle login box? I normally run a query on an attached Oracle table and have to enter the un/pw before the query will run....
3
by: spw | last post by:
Hello, I am beginner/intermediate user of Access and primariy use the 'Tables' and Queries' objects. I have a query that is pointing to a set of tables that will be updated every week. This...
4
by: Supa Hoopsa | last post by:
I am in the process of rewriting an MS Access application (access front end with SQL 2k database) in VB.NET and one of the things I would like to do is link in to the compiled Access ADE so that I...
18
by: WilhelmAccess | last post by:
Hi, I am trying to automate the running of a SQL Query. I have a Table in Access 2003 that contains records with several fields, (member identifier, $ amount and months during the year they were...
0
by: totomalas | last post by:
I have developed a report in Access 2007 that runs on three queries, each promting an input from the user...this report is used for a meeting and it should be printed nine times...what I do now is...
5
by: totomalas | last post by:
I have developed a report in Access 2007 that runs on three queries, each promting an input from the user...this report is used for a meeting and it should be printed nine times...what I do now is...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.