Mark a check box after printing contact labels.

G

Guest

I created a table/form for contacts that will need to print labels for. The
form has a check box that indicates a lable has been printed. What/how can I
print lables for a range of contacts and mark all the check boxes automaticly
after printing?

Thanks..
 
D

Duane Hookom

Use code like:

Dim strSQL as String
' the where clause should be the same as your report's filter
strSQL = "UPDATE tblSomeTable SET SomeField = True WHERE ...."
If MsgBox("Did the labels print correctly?", vbYesNo + vbQuestion, "Print
OK") = vbYes Then
DoCmd.SetWarnings False
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Automaticly clear checkmarks 1
check boxes on a parameter form 3
Missing check mark 6
Numbering Labels 4
Merging Checks 3
Printing to a form 4
Multi - Label format 1
form question 2

Top