Hi, I have used the Docmd.outputto function in various places in my code but for some reason all code that comes afterwards, even msgbox doesn't show. I was just wondering if there is anything that could be causing this. For example in the snippet below the docmd command brings up a box saying that it is outputting the file to c:\FullTimetabl e.snp but no msgbox appears saying "test". I have about 6 or so if statements with the same problem and i'm hoping it is nothing major. Your help is greatly appreciated!
Thanks!
Allen
Code:
If [Forms]![ReportsMenu]![InvigTTBySchool].Value = True Then
ChoiceOne = True
MyChoiceOne = "FullTimetablebyFaculty"
MyReportOne = "FullTimetable"
DoCmd.OutputTo acReport, MyChoiceOne, "SnapshotFormat(*.snp)", "c:\" & MyReportOne & ".snp", False, ""
MsgBox "test"
Else
Allen
Comment