A
ajhome
First of all, if this is a repeat, I apologize. I cannot find the original
post. In the code below, everything works except for the V/PTimeAccrued and
V/PTimeUsed. Those 4 fields will not insert into my table. On my form, you
input those values. All other fields are either list/combo boxes and
calculated fields. What is wrong with the code?
"(EmpID, SupervisorID, ADID, InsertDate, EffectiveDate, Logon,
ResignorTerm, Reason, VTimeAccrued, VTimeUsed, PTimeAccrued, PTimeUsed,
TotalOwedEmp, TotalOwedComp) " & _
"VALUES (" & lstSelectEmp.Column(0) & ", " & lstSelectEmp.Column(2) & _
", " & lstSelectEmp.Column(4) & ", " & _
Format(txtInsertDate, "\#yyyy\-mm\-dd\#") & ", " & _
Format(txtEffectiveDate, "\#yyyy\-mm\-dd\#") & ", " & _
Chr$(34) & txtLogon & Chr$(34) & ", " & _
Chr$(34) & cboResignorTerm & Chr$(34) & ", " & _
Chr$(34) & cboReason & Chr$(34) & ", " & _
Chr$(34) & txtVTimeAccrued & Chr$(34) & ", " & _
Chr$(34) & txtVTimeUsed & Chr$(34) & ", " & _
Chr$(34) & txtPTimeAccrued & Chr$(34) & ", " & _
Chr$(34) & txtPTimeUsed & Chr$(34) & ", " & _
Chr$(34) & txtTotalOwedEmp & Chr$(34) & ", " & _
Chr$(34) & txtTotalOwedComp & Chr$(34) & " ) "
post. In the code below, everything works except for the V/PTimeAccrued and
V/PTimeUsed. Those 4 fields will not insert into my table. On my form, you
input those values. All other fields are either list/combo boxes and
calculated fields. What is wrong with the code?
"(EmpID, SupervisorID, ADID, InsertDate, EffectiveDate, Logon,
ResignorTerm, Reason, VTimeAccrued, VTimeUsed, PTimeAccrued, PTimeUsed,
TotalOwedEmp, TotalOwedComp) " & _
"VALUES (" & lstSelectEmp.Column(0) & ", " & lstSelectEmp.Column(2) & _
", " & lstSelectEmp.Column(4) & ", " & _
Format(txtInsertDate, "\#yyyy\-mm\-dd\#") & ", " & _
Format(txtEffectiveDate, "\#yyyy\-mm\-dd\#") & ", " & _
Chr$(34) & txtLogon & Chr$(34) & ", " & _
Chr$(34) & cboResignorTerm & Chr$(34) & ", " & _
Chr$(34) & cboReason & Chr$(34) & ", " & _
Chr$(34) & txtVTimeAccrued & Chr$(34) & ", " & _
Chr$(34) & txtVTimeUsed & Chr$(34) & ", " & _
Chr$(34) & txtPTimeAccrued & Chr$(34) & ", " & _
Chr$(34) & txtPTimeUsed & Chr$(34) & ", " & _
Chr$(34) & txtTotalOwedEmp & Chr$(34) & ", " & _
Chr$(34) & txtTotalOwedComp & Chr$(34) & " ) "