I'm trying to use the insert into with a select statement to fill the first colum and I want a value I specify to fill the second colum. I'm doing this from vb use ado. I use the select statment to get the employee ID, but I don't know how to just throw some value in for AvailDate.
Any Tips?
sql = "INSERT INTO TmpEmpAvail (EmployeeID, AvailDate)
SELECT EmployeeID FROM EmpRTO WHERE (StartDate > " & "'" & currentDate & "'" & " OR EndDate < " & "'" & currentDate & "')"
Any Tips?
sql = "INSERT INTO TmpEmpAvail (EmployeeID, AvailDate)
SELECT EmployeeID FROM EmpRTO WHERE (StartDate > " & "'" & currentDate & "'" & " OR EndDate < " & "'" & currentDate & "')"