G
Guest
1 ) I have a table that gets data loaded into it from another program (Data
is there)
2) I have a form which displays this data as well as some extra fields
which can be populated by the user. The form also has a "Print label" check
Box, the form also has a command button on it for printing.
3) I have a query which is based on the "Print Label" check box being checked.
4) I have a report which includes all the fields on the form and is based
on the "Print Label" check box.
Now the problem is, some times the report has data in it and sometimes it
dosen't. The data is always in the tables and the "Print Label" check box is
always checked. Below is the code for the Print button. After printing I set
the check box to "No"
Any help is appreciated.
Private Sub Command68_Click()
On Error GoTo Err_Command68_Click
DoCmd.OpenReport "Shiptolabel", acViewPreview
PrintLabel.Value = No
Exit_Command68_Click:
Exit Sub
Err_Command68_Click:
MsgBox Err.Description
Resume Exit_Command68_Click
is there)
2) I have a form which displays this data as well as some extra fields
which can be populated by the user. The form also has a "Print label" check
Box, the form also has a command button on it for printing.
3) I have a query which is based on the "Print Label" check box being checked.
4) I have a report which includes all the fields on the form and is based
on the "Print Label" check box.
Now the problem is, some times the report has data in it and sometimes it
dosen't. The data is always in the tables and the "Print Label" check box is
always checked. Below is the code for the Print button. After printing I set
the check box to "No"
Any help is appreciated.
Private Sub Command68_Click()
On Error GoTo Err_Command68_Click
DoCmd.OpenReport "Shiptolabel", acViewPreview
PrintLabel.Value = No
Exit_Command68_Click:
Exit Sub
Err_Command68_Click:
MsgBox Err.Description
Resume Exit_Command68_Click