R
Rose B
I am not sure whether what I am wanting to do is possible - would appreciate
some guidance! There are two scenarios.
Scenario 1
I have a form with 2 subforms, each continuous forms. One subform has data
being entered by the user and, depending upon what they enter I need to
calculate one of the fields using information from the other subform - which
actually contains the contents of a table. So - a user will enter and
activity type, a date and a value in a field. I then want the value to be
multiplied by a rate that is found in another table where the activities are
equal and the date is between a from and a to date. (Similarly I have another
field that I want to set to the value in another table where the activities
match plus one other condition)
I have tried various methods and come unstuck each time - I am guessing that
VBA is possible?
Scenario 2.
I want to create entries into a table (invoice lines) based upon entries in
a table (services taken). The value of the invoice (and whether it is
invoiceable at all) will depend upon test similar to those in scenario 1. For
example, if the service taken needs to be invoiced (tested by activity on a
table indicating whether or not this is an invoiceable service) pick up the
rate for the service based upon the activity and the date that it took place
from a rates table.
My intention is to do all of his "in batch" once the user clicks a button to
prepare invoices.
Appreciate any thoughts - I realise that this is a potential can of worms
some guidance! There are two scenarios.
Scenario 1
I have a form with 2 subforms, each continuous forms. One subform has data
being entered by the user and, depending upon what they enter I need to
calculate one of the fields using information from the other subform - which
actually contains the contents of a table. So - a user will enter and
activity type, a date and a value in a field. I then want the value to be
multiplied by a rate that is found in another table where the activities are
equal and the date is between a from and a to date. (Similarly I have another
field that I want to set to the value in another table where the activities
match plus one other condition)
I have tried various methods and come unstuck each time - I am guessing that
VBA is possible?
Scenario 2.
I want to create entries into a table (invoice lines) based upon entries in
a table (services taken). The value of the invoice (and whether it is
invoiceable at all) will depend upon test similar to those in scenario 1. For
example, if the service taken needs to be invoiced (tested by activity on a
table indicating whether or not this is an invoiceable service) pick up the
rate for the service based upon the activity and the date that it took place
from a rates table.
My intention is to do all of his "in batch" once the user clicks a button to
prepare invoices.
Appreciate any thoughts - I realise that this is a potential can of worms