Clear Checkbox field on close of form or close of report

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

good day,

I have a form that I use to print lables for my products. on the form
there is a checkbox (printlabel) and if it is checked then my labels report
will print for those products, and I would like to when the report is closed
then the checkboxes that are true are cleard to false.

I have tried on my report close:

If Me.printlabel = true then
Me.printlabel = false
End if

however its not working, any ideas?

Thanks,

Brook
 
Consider running an update query:

Dim strSQL as String
strSQL = "Update tblNoName Set PrintLabel = 0"
DoCmd.SetWarnings False
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
 

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

Back
Top