Myriad_Rocker
Questioning Reality
- Local time
- Today, 10:09
- Joined
- Mar 26, 2004
- Messages
- 166
I want to insert a record into a table that's value is in a text box on my form. When I click the "Insert" button, I want that value to go to said field in the table...
Private Sub btn_insert_Click()
On Error GoTo Err_btn_insert_Click
DoCmd.GoToRecord , , acNewRec
Exit_btn_insert_Click:
Exit Sub
Err_btn_insert_Click:
MsgBox Err.Description
Resume Exit_btn_insert_Click
End Sub
Private Sub btn_insert_Click()
On Error GoTo Err_btn_insert_Click
DoCmd.GoToRecord , , acNewRec
Exit_btn_insert_Click:
Exit Sub
Err_btn_insert_Click:
MsgBox Err.Description
Resume Exit_btn_insert_Click
End Sub