Hi, I'm new with MS Access stuff and a newbie in this forum. But I need help with my form that works but always come up with an error "424 Object Required".
I created a pop up data entry form and when the SAVE button is pressed, it inputs the data into a table.
Here's my vba code and i don't get it why the dialog shows up even though it works fine.
Code:
Private Sub ButtonSaveAndExit_Click()
CurrentDb.Execute "INSERT INTO Table_INV_2013(recDOE, recRegion,recMC,recType,recNum,recComp)" & _
" VALUES('" & Me.Auto_Date & "','" & Me.NPSRegion & "','" & Me.NPSMain & "','" & Me.NPSType & "','" & Me.NPSNumber & "','" & _
Me.TxtComplainant & "')"
ButtonCancel_Click
Records_2013.Form.Requery
End Sub
I'm not familiar with vba but I figured out how to construct its structure from the net. Hope someone help me resolve this problem. Thank you.