K
Kimberly
Hi,
I'm trying to delete a record from a table through a form;
however, I'm getting a run time error. Any help that you
can provide is much appreciated.
Best Regards,
CurrentDb.Execute _
"Delete tbl_equipmentparts_list.Login_id,
tbl_equipmentparts_list.Date," & _
"tbl_equipmentparts_list.Item_Descrip," & _
"tbl_equipmentparts_list.Item_Qty,
tbl_equipmentparts_list.Item_Unit_Cost," & _
"tbl_equipmentparts_list.Payment_Frm_Id,
tbl_equipmentparts_list.Purchase_Order_Num " & _
"From tbl_equipmentparts_list " & _
"Where ((tbl_equipmentparts.login_id=" & _
Forms!frm_login.Controls!cboEmployee & ") and " & _
"(tbl_equipmentparts_list.Date=" & _
Forms!frm_equipmentparts.Controls!txtdate & ") and " &
_
"(tbl_equipmentparts_list.Item_Descrip=" & _
Forms!frm_equipmentparts.Controls!txtitemdesc & ")
and " & _
"(tbl_equipmentparts_list.Item_Qty=" & _
Forms!frm_equipmentparts.Controls!txtitemqty & ")
and " & _
"(tbl_equipmentparts_list.Item_Unit_Cost=" & _
Forms!frm_equipmentparts.Controls!txtitemcost & ")
and " & _
"(tbl_equipmentparts_list.Payment_Frm_Id=" & _
Forms!frm_equipmentparts.Controls!cbopayment & ")
and " & _
"(tbl_equipmentparts_list.Purchase_Order_Num=" & _
Forms!frm_equipmentparts.Controls!txtpo & "))", _
dbFailOnError
I'm trying to delete a record from a table through a form;
however, I'm getting a run time error. Any help that you
can provide is much appreciated.
Best Regards,
CurrentDb.Execute _
"Delete tbl_equipmentparts_list.Login_id,
tbl_equipmentparts_list.Date," & _
"tbl_equipmentparts_list.Item_Descrip," & _
"tbl_equipmentparts_list.Item_Qty,
tbl_equipmentparts_list.Item_Unit_Cost," & _
"tbl_equipmentparts_list.Payment_Frm_Id,
tbl_equipmentparts_list.Purchase_Order_Num " & _
"From tbl_equipmentparts_list " & _
"Where ((tbl_equipmentparts.login_id=" & _
Forms!frm_login.Controls!cboEmployee & ") and " & _
"(tbl_equipmentparts_list.Date=" & _
Forms!frm_equipmentparts.Controls!txtdate & ") and " &
_
"(tbl_equipmentparts_list.Item_Descrip=" & _
Forms!frm_equipmentparts.Controls!txtitemdesc & ")
and " & _
"(tbl_equipmentparts_list.Item_Qty=" & _
Forms!frm_equipmentparts.Controls!txtitemqty & ")
and " & _
"(tbl_equipmentparts_list.Item_Unit_Cost=" & _
Forms!frm_equipmentparts.Controls!txtitemcost & ")
and " & _
"(tbl_equipmentparts_list.Payment_Frm_Id=" & _
Forms!frm_equipmentparts.Controls!cbopayment & ")
and " & _
"(tbl_equipmentparts_list.Purchase_Order_Num=" & _
Forms!frm_equipmentparts.Controls!txtpo & "))", _
dbFailOnError