Hey guys.
I'm trying to insert data FROM two tables into single records of a different table.
So there are three tables: 1 destination, 2 sources
I'm using the docmd.runsql vba function.. here's what I have:
Code:
DoCmd.RunSQL ("INSERT INTO SuiteEvents(Account, Section, Row, Seats,
NumSeats1, TypeSeat, Name, EventCode, EventDate, MaxSeats, MaxParking, Parking, Price)
SELECT AccountNumber, Section, Row, Seats, NumSeats1, TypeSeat FROM SuiteAccounts,
SELECT EventName, EventID, EventDate, SuiteMaxSeatCount, SuiteMaxParkingPass,
SuiteParkingPass, L_Price FROM EventPrep;")
I know this code is wrong, but how can I use two SELECT statements as sources from different tables, to insert into a new destination table?
Thanks guys!