Hi,
I've a question of insert into a table with the following codes.
CurrentDb.Execute "Insert into tblTNewAppt (TRef, AppointedBy, RankCode, JobPosition, Company, Honorarium, Allowance, FCF_No, Budget, DaysNotAvailable, ApptStart_Dt, ApptEnd_Dt, Remarks) " _
& "VALUES (' " & lngID & "', '" & fraApptedBy & "', '" & fraHSR & "', '" & txtJobPosition & "', '" & txtCompany & "', '" & sHon & "', '" & sAll & "', '" & txtFCF_No & "', '" & txtBudget & "', '" & txtDaysNotAvailable & "', #" & txtApptStart_Dt & "# , '" & "#" & txtApptEnd_Dt & "#" & "', '" & txtRemarks & "');"
The execution is fine except that no value is inserted into "ApptEnd_Dt" of tblTNewAppt with value from txtApptEnd_Dt.
Any suggestions
Thanks in advance.
I've a question of insert into a table with the following codes.
CurrentDb.Execute "Insert into tblTNewAppt (TRef, AppointedBy, RankCode, JobPosition, Company, Honorarium, Allowance, FCF_No, Budget, DaysNotAvailable, ApptStart_Dt, ApptEnd_Dt, Remarks) " _
& "VALUES (' " & lngID & "', '" & fraApptedBy & "', '" & fraHSR & "', '" & txtJobPosition & "', '" & txtCompany & "', '" & sHon & "', '" & sAll & "', '" & txtFCF_No & "', '" & txtBudget & "', '" & txtDaysNotAvailable & "', #" & txtApptStart_Dt & "# , '" & "#" & txtApptEnd_Dt & "#" & "', '" & txtRemarks & "');"
The execution is fine except that no value is inserted into "ApptEnd_Dt" of tblTNewAppt with value from txtApptEnd_Dt.
Any suggestions
Thanks in advance.