G
Guest
I'm very new to Access and VBA. I've been reading and reading, but I can't
seem to figure this one out. Any help you can provide would be appreciated.
If I was using some other type of programming, I would try a do while loop,
but I'm not sure how to do this in Access or where it should be done.
I'll probably botch the explanation, but here goes.
I have an input form that accepts parameters that it is passing to a query
and displaying in a new form. Inside this form are the results of my query
as expected. Now I need a total field on the result form, but the total is
based on sameness of some data within the form. It is also not a straight
calculation (1+1), I have to compare the field to get the higher value of the
field and that must be added to the total amount.
Here's an example of data that might make it easier to see what I'm trying
to say.
Bon 20060101 3
Bon 20060101 1
Bon 20060101 2
Bon 20061101 1
Bon 20061101 2
bon 20061201 1
bon 20061201 1
from the above, the total should be 6. I'm sure this can be done
programmatically, just not sure how to do it in VBA or where it should go.
Any help/direction you can provide would be greatly appreciated.
THANK YOU!
Bonnie
seem to figure this one out. Any help you can provide would be appreciated.
If I was using some other type of programming, I would try a do while loop,
but I'm not sure how to do this in Access or where it should be done.
I'll probably botch the explanation, but here goes.
I have an input form that accepts parameters that it is passing to a query
and displaying in a new form. Inside this form are the results of my query
as expected. Now I need a total field on the result form, but the total is
based on sameness of some data within the form. It is also not a straight
calculation (1+1), I have to compare the field to get the higher value of the
field and that must be added to the total amount.
Here's an example of data that might make it easier to see what I'm trying
to say.
Bon 20060101 3
Bon 20060101 1
Bon 20060101 2
Bon 20061101 1
Bon 20061101 2
bon 20061201 1
bon 20061201 1
from the above, the total should be 6. I'm sure this can be done
programmatically, just not sure how to do it in VBA or where it should go.
Any help/direction you can provide would be greatly appreciated.
THANK YOU!
Bonnie