J
JR
I would like to turn 20 SQL queries that look like the two
below into one macro so that they can run one after the
other. I have already built a macro that runs the queries
one after the other, BUT that requires the queries to
exist. I figure that if I can turn SQL into VBA then I
will not need the actual queries. Can it be done?
INSERT INTO tbl_TEST_A ( ID, Location, Posture, Phase,
Rate )
SELECT [3Brates].ID, [3Brates].Location, Forms!
frmCLIIIBappend!lblBA.Caption AS Expr1, Forms!
frmCLIIIBappend!lblB.Caption AS Expr2, [3Brates].BUorAT AS
Rate
FROM 3Brates;
INSERT INTO tbl_TEST_A ( ID, Location, Posture, Phase,
Rate )
SELECT [3Brates].ID, [3Brates].Location, Forms!
frmCLIIIBappend!lblBDd.Caption AS Expr1, Forms!
frmCLIIIBappend!lblB.Caption AS Expr2, [3Brates].BUorAT AS
Rate
FROM 3Brates;
below into one macro so that they can run one after the
other. I have already built a macro that runs the queries
one after the other, BUT that requires the queries to
exist. I figure that if I can turn SQL into VBA then I
will not need the actual queries. Can it be done?
INSERT INTO tbl_TEST_A ( ID, Location, Posture, Phase,
Rate )
SELECT [3Brates].ID, [3Brates].Location, Forms!
frmCLIIIBappend!lblBA.Caption AS Expr1, Forms!
frmCLIIIBappend!lblB.Caption AS Expr2, [3Brates].BUorAT AS
Rate
FROM 3Brates;
INSERT INTO tbl_TEST_A ( ID, Location, Posture, Phase,
Rate )
SELECT [3Brates].ID, [3Brates].Location, Forms!
frmCLIIIBappend!lblBDd.Caption AS Expr1, Forms!
frmCLIIIBappend!lblB.Caption AS Expr2, [3Brates].BUorAT AS
Rate
FROM 3Brates;