C
Carl_and_Earl
I have this code:
Private Sub print_Click()
On Error GoTo Err_print
Dim MyWhereCondition As String
MyWhereCondition = "ID= " & Me.ID
DoCmd.OpenReport " Consemne ", acPreview, , MyWhereCondition
Exit_print:
Exit Sub
Err_print:
MsgBox Err.Description
Resume Exit_print
End Sub
That worked perfectly... something happened while changhing some forms. Now
when I press the print button on the form, nothing happens.
The report that the expression reffers to, exists.
There is a printer installed.
Private Sub print_Click()
On Error GoTo Err_print
Dim MyWhereCondition As String
MyWhereCondition = "ID= " & Me.ID
DoCmd.OpenReport " Consemne ", acPreview, , MyWhereCondition
Exit_print:
Exit Sub
Err_print:
MsgBox Err.Description
Resume Exit_print
End Sub
That worked perfectly... something happened while changhing some forms. Now
when I press the print button on the form, nothing happens.
The report that the expression reffers to, exists.
There is a printer installed.