dbTalk Databases Forums  

Q. How to run multiple UPDATE sql statements in one go?

comp.database.ms-access comp.database.ms-access


Discuss Q. How to run multiple UPDATE sql statements in one go? in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andy B
 
Posts: n/a

Default Q. How to run multiple UPDATE sql statements in one go? - 10-01-2003 , 08:59 AM






I have a low-tech client with Access 97. I have a series of update SQL
statements I would like to send to them. In other RDBMS I can run a
series of SQL statements in one go: copy and paste to a query window,
highlight and run. In access 97, it won't allow me to have a series of
SQL statements in one query window.

The number of update SQLs are about 20 in total, so i would be willing
to code it into a script of some kind but i'm not sure how that would
cater for me to transfer that to their copy of the database.

My background is asp and web-based databases, i haven't really touched
upon customising access and using VBA.

Any assistance would be gratefully received,
Andy B

Reply With Quote
  #2  
Old   
Allan Thompson
 
Posts: n/a

Default Re: Q. How to run multiple UPDATE sql statements in one go? - 10-02-2003 , 07:11 AM






The simplest way to accomplish this without having to learn VBA would be to
use a macro. Within the macro, you can use the RunSQL action for SQL
statements of up to 256 characters. Alternatively, you can save each UPDATE
statement as a query and then create a macro that runs the queries (using
the OpenQuery action).


--
Allan Thompson
APT Associates/ FieldScope LLC
MS Office Automation / Measurement and Reporting Systems
www.fieldscope.com
860.242.4184

"Andy B" <coastalrocket (AT) yahoo (DOT) co.uk> wrote

Quote:
I have a low-tech client with Access 97. I have a series of update SQL
statements I would like to send to them. In other RDBMS I can run a
series of SQL statements in one go: copy and paste to a query window,
highlight and run. In access 97, it won't allow me to have a series of
SQL statements in one query window.

The number of update SQLs are about 20 in total, so i would be willing
to code it into a script of some kind but i'm not sure how that would
cater for me to transfer that to their copy of the database.

My background is asp and web-based databases, i haven't really touched
upon customising access and using VBA.

Any assistance would be gratefully received,
Andy B



Reply With Quote
  #3  
Old   
Andy B
 
Posts: n/a

Default Re: Q. How to run multiple UPDATE sql statements in one go? - 10-02-2003 , 03:23 PM



Thanks Allan, that's the ticket.

"Allan Thompson" <athompson (AT) fieldscope (DOT) com> wrote

Quote:
The simplest way to accomplish this without having to learn VBA would be to
use a macro. Within the macro, you can use the RunSQL action for SQL
statements of up to 256 characters. Alternatively, you can save each UPDATE
statement as a query and then create a macro that runs the queries (using
the OpenQuery action).


--
Allan Thompson
APT Associates/ FieldScope LLC
MS Office Automation / Measurement and Reporting Systems
www.fieldscope.com
860.242.4184

"Andy B" <coastalrocket (AT) yahoo (DOT) co.uk> wrote in message
news:f1523bf.0310010559.6ce9a3f7 (AT) posting (DOT) google.com...
I have a low-tech client with Access 97. I have a series of update SQL
statements I would like to send to them. In other RDBMS I can run a
series of SQL statements in one go: copy and paste to a query window,
highlight and run. In access 97, it won't allow me to have a series of
SQL statements in one query window.

The number of update SQLs are about 20 in total, so i would be willing
to code it into a script of some kind but i'm not sure how that would
cater for me to transfer that to their copy of the database.

My background is asp and web-based databases, i haven't really touched
upon customising access and using VBA.

Any assistance would be gratefully received,
Andy B

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.