Link to home
Start Free TrialLog in
Avatar of Henry Gage, Jr.
Henry Gage, Jr.Flag for United States of America

asked on

how to combine multiple sql queries in ms access

MS Access
SQL
Combining Statements (several into one)

I have several SQL statements...
CREATE TABLE A...
INSERT INTO TABLE A...
CREATE TABLE B...
INSERT INTO TABLE B...
CREATE TABLE C...
INSERT INTO TABLE C...

... and will add others. I would like to execute several in sequence and would like to know the best practice for combining multiple statements in MS Access.
SOLUTION
Avatar of Phillip Burton
Phillip Burton

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Henry Gage, Jr.

ASKER

Hello,

Thanks for the comment. Is there also a way to combine the statements within MS Access without using VBA? I reason I am asking is because I want to run several as a group. For example I may want to drop or delete a table, create the table, load the table and export the table with one user event (on click).


Is your larger point that it is better to use VBA combined with MS Access because it enable a developer to govern the user experience by adding better UI controls, thus leading to an application?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've requested that this question be closed as follows:

Accepted answer: 167 points for Phillip Burton's comment #a40365831
Assisted answer: 167 points for Phillip Burton's comment #a40365809
Assisted answer: 0 points for Henry Gage, Jr.'s comment #a40365820
Assisted answer: 166 points for Phillip Burton's comment #a40365829

for the following reason:

I included my comment as clarification of the questions and to keep a thread context.
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial