TABLE TO WRITE TO: TblTimeEquip
FIELDS IN TABLE:
EquipNo (Text field)
JobNumberEq (Text Field)
ActivityCodeEQ (Text Field)
EQDate (Date Field)
PhaseEQ (Text Field)
EQHours (Number Field)
EqComments (Text Feild)
TruckYNEQ (Text Field)
If Me.Units >= 0.01 Then
SQL = "INSERT INTO tbltimeequip (EquipNo, JobNumberEQ, ActivityCodeEQ, EQDate, PhaseEQ, " & _
"EqHours, EqComments, TruckYNEQ) " & _
"VALUES ('" & Me.EquipIDTE & "','" & Me.ProjectNoCB & "','" & Me.CostCodeCB & _
"',#" & Me.WorkDate & "#,'" & Me.PhaseCB & Me.Units & _
",'" & Me.Description & "','" & Me.TMCO & "','" & Me.TkYN & "')"
DB.Execute SQL
Can anyone see why it wouldn't be writing to the table. It walks through the code okay, but no results in the table show up.
THanks, Bailey 11
FIELDS IN TABLE:
EquipNo (Text field)
JobNumberEq (Text Field)
ActivityCodeEQ (Text Field)
EQDate (Date Field)
PhaseEQ (Text Field)
EQHours (Number Field)
EqComments (Text Feild)
TruckYNEQ (Text Field)
If Me.Units >= 0.01 Then
SQL = "INSERT INTO tbltimeequip (EquipNo, JobNumberEQ, ActivityCodeEQ, EQDate, PhaseEQ, " & _
"EqHours, EqComments, TruckYNEQ) " & _
"VALUES ('" & Me.EquipIDTE & "','" & Me.ProjectNoCB & "','" & Me.CostCodeCB & _
"',#" & Me.WorkDate & "#,'" & Me.PhaseCB & Me.Units & _
",'" & Me.Description & "','" & Me.TMCO & "','" & Me.TkYN & "')"
DB.Execute SQL
Can anyone see why it wouldn't be writing to the table. It walks through the code okay, but no results in the table show up.
THanks, Bailey 11