R
Richard
Hi
How can I reset this texbox For L = 1 To Me!TextBoxCopies back to
"nothing" after the report has printed. I tried setting the default value to
nothing and 0 but neither had a good results.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Private Sub Label30_Click()
Dim strWhere As String
Dim L As Long
If Me.Dirty Then 'Save any edits.
Me.Dirty = False
End If
If Me.NewRecord Then 'Check there is a record to print
MsgBox "Select a record to print"
Else
strWhere = "[LabelID] = " & Me.[LabelID] 'This code prints a report
to default printer
For L = 1 To Me!TextBoxCopies
DoCmd.OpenReport "rptLabel", acViewNormal, , strWhere
Next L
DoCmd.GoToRecord , , acNewRec
End If
End Sub
Thanks
Richard
How can I reset this texbox For L = 1 To Me!TextBoxCopies back to
"nothing" after the report has printed. I tried setting the default value to
nothing and 0 but neither had a good results.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Private Sub Label30_Click()
Dim strWhere As String
Dim L As Long
If Me.Dirty Then 'Save any edits.
Me.Dirty = False
End If
If Me.NewRecord Then 'Check there is a record to print
MsgBox "Select a record to print"
Else
strWhere = "[LabelID] = " & Me.[LabelID] 'This code prints a report
to default printer
For L = 1 To Me!TextBoxCopies
DoCmd.OpenReport "rptLabel", acViewNormal, , strWhere
Next L
DoCmd.GoToRecord , , acNewRec
End If
End Sub
Thanks
Richard