CassandraB
Registered User.
- Local time
- Today, 16:13
- Joined
- Feb 23, 2003
- Messages
- 54
I have a form with a subform. When I add a record to the subform I have to scroll to the right to continue to add to the fields (because it's wide). After I click my save button the form clears so I can go to the next record to add - but my problem is that my subform clears but it is stuck at the far right so I have to scroll back to the left when I go to add my next record, I would like it to jump back to the far left so I can begin at the first field. Can anyone help me with the snippet of code I need to add to the 'on click' of the save record button?
Here is what I have:
Private Sub Command133_Click()
On Error GoTo Err_Command133_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.GoToRecord , , acNewRec
Exit_Command133_Click:
Exit Sub
Err_Command133_Click:
MsgBox Err.DESCRIPTION
Resume Exit_Command133_Click
End Sub
What and where do I add the snippet of code?
Thanks a million to anyone who can help!
Here is what I have:
Private Sub Command133_Click()
On Error GoTo Err_Command133_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.GoToRecord , , acNewRec
Exit_Command133_Click:
Exit Sub
Err_Command133_Click:
MsgBox Err.DESCRIPTION
Resume Exit_Command133_Click
End Sub
What and where do I add the snippet of code?
Thanks a million to anyone who can help!