Need help new at Access.

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

Guest

I have a form with a check box that indicates it is accepted. I also have a
print button that prints out a report. I would like to have the print button
no be able to print if the check box is not checked. Can anyone help me with
this.
 
Ron,
In the click event of the print button try:

If me.chkPrint.value = -1 then
Docmd.OpenReport etc...
Else
Msgbox "Please check the checkbox first."
End If

Geof Wyght
 
if "check box" = -1, then me."print button".enable = false, else me."print
button".enable = true
 
Oops - other way around, if "check box" = 0, then ...enable = false

Sorry.
 

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