chrisjames25
Registered User.
- Local time
- Today, 12:45
- Joined
- Dec 1, 2014
- Messages
- 404
Hi I have the following save button in a form. When i click on it the idea is to resetdata and move to next record. THis all wokred perfectly but then i wanted to add in a report to print out when i click the button so that the boss at work can check the inputs rather than have to access the database (he likes paper)
WIthout the following code
It worked fine but now the form loses focus and i cant figure out how to get the focus back on the form.
Cheers
Code:
DoCmd.RunCommand acCmdRecordsGoToNext
DoCmd.OpenReport "Rpt_InvoiceChecker"
ResetData
Me.Cbo_Customer.SetFocus
End Sub
WIthout the following code
Code:
DoCmd.OpenReport "Rpt_InvoiceChecker"
End Sub
It worked fine but now the form loses focus and i cant figure out how to get the focus back on the form.
Cheers