J
Joel
I am trying to update a table using a command button with the following
UPDATE statement. However, there is something wrong in my coding that
I can't seem to find. I either get a syntax error or the error in the
subject line. Any help in this would be greatly appreciated.
QrySQL = "UPDATE Timesheet"_
& "SET Timesheet.LvType = '" & Forms!frmLvTimeCard!LvTypeCbo &
"'"_
& "Timesheet.LvStart = " & Forms!frmLvTimeCard!TxtLvStart & "_
& "Timesheet.LvHours = " & Forms!frmLvTimeCard!TxtLvHours & "_
& "WHERE Timesheet.UserName = " & Forms!frmLvTimeCard!LvUserName &
"_
& "Timesheet.TDate = " & Forms!frmLvTimeCard!TxtLvDate & ";
UPDATE statement. However, there is something wrong in my coding that
I can't seem to find. I either get a syntax error or the error in the
subject line. Any help in this would be greatly appreciated.
QrySQL = "UPDATE Timesheet"_
& "SET Timesheet.LvType = '" & Forms!frmLvTimeCard!LvTypeCbo &
"'"_
& "Timesheet.LvStart = " & Forms!frmLvTimeCard!TxtLvStart & "_
& "Timesheet.LvHours = " & Forms!frmLvTimeCard!TxtLvHours & "_
& "WHERE Timesheet.UserName = " & Forms!frmLvTimeCard!LvUserName &
"_
& "Timesheet.TDate = " & Forms!frmLvTimeCard!TxtLvDate & ";