Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counters

Status
Not open for further replies.

bobbster2000

Programmer
Sep 19, 2001
102
US
I have a form with 5 check boxes "Multi", "Hamada", "GTO", "Speedmaster" and "Komori". Each of which have a textbox with them to accept the number used for example: GTO 5, Speedmaster 2. I do I make two counters to count the amount of times which checkbox was checked for each record as well as a counter to add up the number used? Please assist.
 
I am not sure if I fully understand what you have written in your post but I will try and give you some Ideas.

1) create a static variable for each check box in the form and everytime one is checked(marked true) add one to the static variable.

down side to this is that if you close the form you lose the value of the static variable.

2) create a module to add the static variables. then all you have to do if the check box is true is call the module.

Down side when you stop running your app you lose the values

3) Create a table to store the value use the module to update the table and call the module when the chack box is true.

Down Side need to know coding and DAO or ADO depening on your preference. to manipulate the tables.

I know this doesn't seem like much help but as I said I am not sure what you were trying to say in your post.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top