anthonyevans
Registered User.
- Local time
- Today, 18:07
- Joined
- Mar 15, 2001
- Messages
- 29
Dear All,
What is the line of VB code for opening the switchboard so it appears on the screen instead of having to scroll to the top to see it again, to be included in the following ?
Private Sub Command194_Click()
On Error GoTo Err_Command194_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
stDocName = "Treatment Report"
DoCmd.OpenReport stDocName, acNormal, , "[Serial_Number] = [forms]![TREATMENT FORM]![Serial_Number]"
DoCmd.Close acForm, "TREATMENT FORM"
Exit_Command194_Click:
Exit Sub
Err_Command194_Click:
MsgBox Err.Description
Resume Exit_Command194_Click
End Sub
Thankyou in advance for your help.
Anthony
What is the line of VB code for opening the switchboard so it appears on the screen instead of having to scroll to the top to see it again, to be included in the following ?
Private Sub Command194_Click()
On Error GoTo Err_Command194_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
stDocName = "Treatment Report"
DoCmd.OpenReport stDocName, acNormal, , "[Serial_Number] = [forms]![TREATMENT FORM]![Serial_Number]"
DoCmd.Close acForm, "TREATMENT FORM"
Exit_Command194_Click:
Exit Sub
Err_Command194_Click:
MsgBox Err.Description
Resume Exit_Command194_Click
End Sub
Thankyou in advance for your help.
Anthony