Runtime error '3078' even though SQL string appears correct
Posted on 2003-12-02
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
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.deldate = #" & Format$(Me.tbx_clients_nextcall, "mm\/dd\/yyyy") & "# WHERE (tbl_temp_orderentry.code) = '" & Trim(Me!code) & "';"
DBEngine(0)(0).Execute strSQL1, dbFailOnError