A
Another_Access_Dummy
This code was working fine until I created my second version.
Private Sub cmdPrintRecord_Click()
On Error GoTo Err_cmdPrintRecord_Click
Me.Refresh ' this saves the data to disk
DoCmd.OpenReport "Current Call Record", acViewPreview, , "CallID =
" & Me!CallID
Exit_cmdPrintRecord_Click:
Exit Sub
Err_cmdPrintRecord_Click:
MsgBox Err.Description
Resume Exit_cmdPrintRecord_Click
End Sub
It prints the current call record that my user is on. I did add some
new fields and new formatting to the report itself, but I don't see why
that could be the problem.
In the Immediate window, I get this when I run the code:
Compile error: argument not optional.
If I just click on the Print button on the form - I get Invalid
Argument.
Any suggestions?
Thanks.
Private Sub cmdPrintRecord_Click()
On Error GoTo Err_cmdPrintRecord_Click
Me.Refresh ' this saves the data to disk
DoCmd.OpenReport "Current Call Record", acViewPreview, , "CallID =
" & Me!CallID
Exit_cmdPrintRecord_Click:
Exit Sub
Err_cmdPrintRecord_Click:
MsgBox Err.Description
Resume Exit_cmdPrintRecord_Click
End Sub
It prints the current call record that my user is on. I did add some
new fields and new formatting to the report itself, but I don't see why
that could be the problem.
In the Immediate window, I get this when I run the code:
Compile error: argument not optional.
If I just click on the Print button on the form - I get Invalid
Argument.
Any suggestions?
Thanks.