Hi,
I have two queries setup to insert data into two separate tables that I want to combine into one. I am not sure how to write it. Any help would be appreciated.
I have two queries setup to insert data into two separate tables that I want to combine into one. I am not sure how to write it. Any help would be appreciated.
Code:
QueryToSubmitData = "INSERT INTO Employee_List (ID, LName, FName, DeptId, Limit, Active) SELECT '" & Me!EmployeeID & "', '" & Me!LastName & _
"', '" & Me!FirstName & "', " & Me!DeptCombo.Column(0) & ", " & Me!Limit & ", -1 FROM Employee_List WHERE " & _
"Employee_List.ID = 1;"
Code:
QueryToSubmitBlank = "INSERT INTO Expenses (DT, EmployeeID, Amount, SourceID, Description) SELECT '01/01/2009', '" & Me!EmployeeID & "', '0', '4', 'New Hire';"