Re: run queries by the batch
- From: "Rick Brandt" <rickbrandt2@xxxxxxxxxxx>
- Date: Thu, 28 Dec 2006 20:15:05 GMT
Tonk wrote:
Sorry to pollute the post with so many dumb questions! Until I figure
out how to write queries that accomplish more than 1 thing at a time,
I was wondering if there was any way to automate queries. For
example, I have a delete query that deletes bad data. I run an
update query that changes sex from 2 to 1 if conditions x, y, and z
are met. I run another delete query that checks for missing values.
And so on, and so forth.
I guess what I'm looking for is a way to run a batch file that will
run a series of queries one right after the other.
Am I nuts or does such capability exist?
tonk
In VBA code you can have...
CurrentDB.Execute "FirstQueryName", dbFailOnError
CurrentDB.Execute "SecondQueryName", dbFailOnError
CurrentDB.Execute "ThirdQueryName", dbFailOnError
etc..
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
.
- Follow-Ups:
- Re: run queries by the batch
- From: Tonk
- Re: run queries by the batch
- References:
- run queries by the batch
- From: Tonk
- run queries by the batch
- Prev by Date: run queries by the batch
- Next by Date: Re: run queries by the batch
- Previous by thread: run queries by the batch
- Next by thread: Re: run queries by the batch
- Index(es):
Relevant Pages
|
|