MS Access Programming help: Advice needed
polkatese
Posts: 6,767
Any guru on MS Access programming here?
I need to create a procedure to store a running total of integer values to a temp table or a declared table, based on an assigned value to a row/record stored in a different table.
For instance, I have a table with descriptions, check mark, and assigned value column. If I select the check mark for that particular row/record, I like to start a counter to add that value. Let's say there are 10 rows of entry and I checked 6 lines of these rows. I like to have a running total of the assigned values related to these rows. The means to do the calc is to create a button click trigger, and perhaps display the total in a separate form.
Can anyone point me to a sample procedure to achieve this objective? Or better yet, have done it themselves?
Thanks in advance for your feedback.
I need to create a procedure to store a running total of integer values to a temp table or a declared table, based on an assigned value to a row/record stored in a different table.
For instance, I have a table with descriptions, check mark, and assigned value column. If I select the check mark for that particular row/record, I like to start a counter to add that value. Let's say there are 10 rows of entry and I checked 6 lines of these rows. I like to have a running total of the assigned values related to these rows. The means to do the calc is to create a button click trigger, and perhaps display the total in a separate form.
Can anyone point me to a sample procedure to achieve this objective? Or better yet, have done it themselves?
Thanks in advance for your feedback.
I am sorry, I have no opinion on the matter. I am sure you do. So, don't mind me, I just want to talk audio and pie.
Post edited by polkatese on
Comments
-
Add the event and I think the SQL query should look something like this:
SELECT SUM(assigned_value) FROM table WHERE checked = True -
correct.Good music, a good source, and good power can make SDA's sing. Tubes make them dance.
-
Thanks, guys. On Yes/No argument, what's the proper syntax to say if Yes/No = true, THEN...
sorry for the novice question...I am sorry, I have no opinion on the matter. I am sure you do. So, don't mind me, I just want to talk audio and pie. -
not getting your question....Good music, a good source, and good power can make SDA's sing. Tubes make them dance.
-
Yes, for a Yes/No field you query as "=True" or "=False"Speakers: Polk LSi15
Pre: Adcom GFP-750 with HT Bypass
Amp: Pass Labs X-150
CD/DVD Player: Classe CDP-10
Interconnects: MIT Shortgun S3 Pro XLR
Speaker cables: MIT MH-750 bi-wire
TT:Micro Seiki DD-35
Cartridge:Denon DL-160
Phono Pre:PS Audio GCPH -
thanks, let me try it.I am sorry, I have no opinion on the matter. I am sure you do. So, don't mind me, I just want to talk audio and pie.
-
Yep. Description is type String, check is Boolean and value is Int32.