jason_pleaner
asked on
Runtime error '3078' even though SQL string appears correct
Experts,
Could someone shed some light on this little problem. Below is the VBA code used to update the delivery date fields for a customer in a table called tbl_temp_orders. It is executed after the date within the tbx_clients_nextcall textbox is changed on a form.
I have checked the resulting strSQL using MsgBox and all seems perfect BUT i get the following error:
Runtime error '3078'
The Microsoft Jet Database Engine cannot find the input table or query ". Make sure it exists and that its mane is spelled correctly.
Thanks in Advance
Jason
Sub UpdateDeldate_TempOrdersTa ble()
Dim strSQL As String
'Create SQL string to update the deldate in tbl_temp_orders when the delivery date is changed
strSQL = "UPDATE tbl_temp_orderentry SET tbl_temp_orderentry.deldat e = #" & Format$(Me.tbx_clients_nex tcall, "mm\/dd\/yyyy") & "# WHERE (tbl_temp_orderentry.code) = '" & Trim(Me!code) & "';"
'Execute strSQL
DBEngine(0)(0).Execute strSQL1, dbFailOnError
End Sub
Could someone shed some light on this little problem. Below is the VBA code used to update the delivery date fields for a customer in a table called tbl_temp_orders. It is executed after the date within the tbx_clients_nextcall textbox is changed on a form.
I have checked the resulting strSQL using MsgBox and all seems perfect BUT i get the following error:
Runtime error '3078'
The Microsoft Jet Database Engine cannot find the input table or query ". Make sure it exists and that its mane is spelled correctly.
Thanks in Advance
Jason
Sub UpdateDeldate_TempOrdersTa
Dim strSQL As String
'Create SQL string to update the deldate in tbl_temp_orders when the delivery date is changed
strSQL = "UPDATE tbl_temp_orderentry SET tbl_temp_orderentry.deldat
'Execute strSQL
DBEngine(0)(0).Execute strSQL1, dbFailOnError
End Sub
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
At the end of the day I figured out another way to do it.
Jason