A
alfiajamel
Hi..
Would someone please tell me what is wrong with the code below. I get the
error message of "there is an invalid use of the .(dot) or ! operator or
invalid parentheses. Thanks in advance!
CurrentDb.Execute "INSERT INTO tblProjectAssignment (EmpID, SupID, " & _
"ProjectID, ProjectSupID, InsertDate, EffectiveDate,
Logon) " & _
"VALUES (" & lstSelectEmp.Column(0) & ", " & _
cboCurrentSupervisor.Column(0) & ", " & _
Chr$(34) & txtProjectID & Chr$(34) & ", " & _
Chr$(34) & txtProjectSupID & Chr$(34) & ", " & _
Format(txtInsertDate, "\#yyyy\-mm\-dd\#") & "," & _
Format(txtEffectiveDate, "\#yyyy\-mm\-dd\#") & ", " & _
Chr$(34) & txtLogon & Chr$(34) & ")"
Would someone please tell me what is wrong with the code below. I get the
error message of "there is an invalid use of the .(dot) or ! operator or
invalid parentheses. Thanks in advance!
CurrentDb.Execute "INSERT INTO tblProjectAssignment (EmpID, SupID, " & _
"ProjectID, ProjectSupID, InsertDate, EffectiveDate,
Logon) " & _
"VALUES (" & lstSelectEmp.Column(0) & ", " & _
cboCurrentSupervisor.Column(0) & ", " & _
Chr$(34) & txtProjectID & Chr$(34) & ", " & _
Chr$(34) & txtProjectSupID & Chr$(34) & ", " & _
Format(txtInsertDate, "\#yyyy\-mm\-dd\#") & "," & _
Format(txtEffectiveDate, "\#yyyy\-mm\-dd\#") & ", " & _
Chr$(34) & txtLogon & Chr$(34) & ")"