multipule msgbox

tubar

Registered User.
Local time
Yesterday, 20:38
Joined
Jul 13, 2006
Messages
190
sorry..im new and need help with the vba that fires multipule message boxes...i get to the "print pdf and save" and it displays an error msg cant output to...any suggestions???

Code:
Private Sub Form_Load()

Dim MResponse As Integer

    MResponse = MsgBox("HAVE YOU IMPORTED NEXT WEEKS PAYROLL EVENT NUMBERS??)", vbYesNo, "END OF PAYROLL QUESTION")


    If MResponse = vbYes Then


    MResponse = MsgBox("PRINT PDF AND SAVE!!!", vbOKOnly, "END OF PAYROLL")
    If MResponse = vbOK Then
    DoCmd.OutputTo acOutputReport, "RPTSTGHNDTRACKING", acFormatPDF, "STAGEHAND PAYROLL.PDF", True
    Else
    DoCmd.Close acForm, , acSaveYes
    
    End If
    Else
    End If
    
   
End Sub
 
GREAT LINK! works like a champ
 
Glad to help
 

Users who are viewing this thread

Back
Top Bottom