I m using a dialog box to open a report using this code on dialog OK button
On Error GoTo Err_OK_Click
Dim strMsg As String, strTitle As String
Dim intStyle As Integer
If Not Reports![Monthly Sales].blnOpening Then Err.Raise 0
' Hide form.
Me.visible = False
Exit_OK_Click:
Exit Sub
Err_OK_Click:
strMsg = "To use this form, you must preview or print the Invoice
report from the Database window or Design view."
intStyle = vbOKOnly
strTitle = "Open from Report"
MsgBox strMsg, intStyle, strTitle
Resume Exit_OK_Click
How can I use the same dialog for multiple reports how to modify this code.
--
Regards,
Abdul Shakeel
[Non-text portions of this message have been removed]
__._,_.___
Reply via web post | Reply to sender | Reply to group | Start a New Topic | Messages in this topic (1) |
.
__,_._,___
Tidak ada komentar:
Posting Komentar