Evening
I have an issue that is making me go insane.
I am trying to get a running total working in a subform which is filtered for the information on the main form.
I have gotten it working in a query, mostly. which i have based the subform on. But in the subform, there are details i want to use as a filter and have the running total only calculate the running total for the information based on the filter.
I have attached my Access file for reference purposes.
The forms i am havings issued with is:
- Sec Total - The main form
- Sec Total (subform)
The query
- Qry: SecTrx-Trade
In the query i am trying to filter by the trades, but the running total seems to include values excluded from the filter - this is not much of an issue as i can create a second query to do the filter and another to do the subtotal - but if it is possible to do both in 1 query, it'll be appreciated.
I used this link to assist me with the running total: http://support.microsoft.com/kb/290136
But they filter by date and this does not help me as mine is text.
The form - The variable i want to use a the filter is the SecID. What I am seeing is the subform is pulling the calculated value from my query and not filtering the subtotal based on my SecID filter.
i have scoured i don't know how many forums trying to find a similar problem, yet the solutions i am seeing don't help me or use a method i don't understand.
Another method i tried, yet it is not in this database. Something tells me that this is the way to go, but my skills are clearly not up to it.
i tried to create a text box in the subform and use the dsum in a similar way to the query forumula, instead of the using the formula in the query - what let me down there is i get a #name error. i suspect a syntax error trying to associate the formula with the parent form, but i have no idea of why or how to fix it.
I want to use several running total formula throughout my database i am building.
Any help will be appreciated.
Thx.