update check box

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

Guest

I posted earlier, but the code I recv'd didnt work.
I have a check box that I would like automatically checked when I update the
field before it. Inputting the permit number, enter, and the check box which
is the next field will be checked. This will eliminate me "forgetting" to
check the box, making the customer look "not current" and getting a late
notice as a result.

Thanks for any help
 
Hi Sheryl,

It's me again ...

I don't really know how you've defined your field in your table but, when
referring to a control with a space in it, enclose the control name with
square brackets:

me![Permit renewed]=True (afterupdate event)

HTH
 
sheryl said:
I posted earlier, but the code I recv'd didnt work.
I have a check box that I would like automatically checked when I update the
field before it. Inputting the permit number, enter, and the check box which
is the next field will be checked. This will eliminate me "forgetting" to
check the box, making the customer look "not current" and getting a late
notice as a result.

Thanks for any help
 
Hi Sheryl:

I tested the following code and it worked as you desire:

Text Box Name: tbxPermitNumber

Check Box Name: cbxPermitRenewed


Private Sub tbxPermitNumber_AfterUpdate()

Me!tbxPermitRenewed = True

End Sub

The check box name you showed in your post earlier today had a space in
it. That can cause problems if you try to use it in code.
Hope this helps.

John
 
Hi Sheryl:

I tested the following code and it worked as you desire:

Text Box Name: tbxPermitNumber

Check Box Name: cbxPermitRenewed


Private Sub tbxPermitNumber_AfterUpdate()

Me!tbxPermitRenewed = True

End Sub

The check box name you showed in your post earlier today had a space in
it. That can cause problems if you try to use it in code.
Hope this helps.

John
 

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

Auto Date for check boxes 13
update check box 3
MS Access problem 0
click to update 3
Updating tables when you input new data 0
Check box teaser 2
check box - check all 1
combo box & check box 1

Back
Top