aftershokk
Registered User.
- Local time
- Today, 07:33
- Joined
- Sep 5, 2001
- Messages
- 259
currently I have a form (based on table) with specialties listed with check boxes next to each label
example:
cardiology, check box
GI, check box
etc...
Currently, the user clicks the Cardiology check box and then hits the command button which runs a macro that will open the report. I want to modify the code to pick one report if only certain boxes are checked and if any of the others are listed it will run a different report.
example: if cardiology or GI or IM etc. is checked run report x macro otherwise report y macro
current code below;
Private Sub convert_to_pdf_button_Click()
On Error GoTo Err_convert_to_pdf_button_Click
Dim stDocName As String
stDocName = "redesign_send"
DoCmd.RunMacro stDocName
Exit_convert_to_pdf_button_Click:
Exit Sub
Err_convert_to_pdf_button_Click:
MsgBox Err.Description
Resume Exit_convert_to_pdf_button_Click
End Sub
thanks
example:
cardiology, check box
GI, check box
etc...
Currently, the user clicks the Cardiology check box and then hits the command button which runs a macro that will open the report. I want to modify the code to pick one report if only certain boxes are checked and if any of the others are listed it will run a different report.
example: if cardiology or GI or IM etc. is checked run report x macro otherwise report y macro
current code below;
Private Sub convert_to_pdf_button_Click()
On Error GoTo Err_convert_to_pdf_button_Click
Dim stDocName As String
stDocName = "redesign_send"
DoCmd.RunMacro stDocName
Exit_convert_to_pdf_button_Click:
Exit Sub
Err_convert_to_pdf_button_Click:
MsgBox Err.Description
Resume Exit_convert_to_pdf_button_Click
End Sub
thanks