Add 1 to a counter when a button is pushed?

G

Guest

Add to your Event or Macro for when the button is pushed to run an update
query on a number field in your counter table to update NumberField +1.
 
S

Steve Schapel

Rastamon,

Assuming Karl meant to use an OpeQuery action in the macro, his
suggested solution would work well, assuming the counter field in in a
table.

If, on the other hand, you are referring to an unbound control on a
form, you could use a SetValue action, with the arguments set like this...
Item: [NameOfCounterTextbox]
Expression: [NameOfCounterTextbox]+1
 
G

Guest

Thanks Karl and Steve. I have discovered that I can do it easier in Excel by
using a spinner button. Thanks for taking the time to reply.

Steve Schapel said:
Rastamon,

Assuming Karl meant to use an OpeQuery action in the macro, his
suggested solution would work well, assuming the counter field in in a
table.

If, on the other hand, you are referring to an unbound control on a
form, you could use a SetValue action, with the arguments set like this...
Item: [NameOfCounterTextbox]
Expression: [NameOfCounterTextbox]+1

--
Steve Schapel, Microsoft Access MVP

KARL said:
Add to your Event or Macro for when the button is pushed to run an update
query on a number field in your counter table to update NumberField +1.
 

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

Top