By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,504 Members | 2,318 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,504 IT Pros & Developers. It's quick & easy.

Overriding a calculated field on a form

P: n/a
Hi all!

Is there anyway I can override a value in a calculated field on a
form? For example:

I have a form which displays the following fields based on a query:

Premium Due field has the value of 12,527.75 in it.

Brokerage Due field is the calculated field which multiplies a factor
of 0.10 (10%) with the value in the Premium field. In this case, the
value in this field will automatically calculate to 1,252.775. I want
to be able to have the ability to be able to change the value in this
field to 1,253.00 or 1,252.78. The reason I want to be able to do so
is for accounting purposes. The Brokerage Due is often different from
what is actually paid due to rounding error. Therefore, I need to be
able to edit this to reflect actual payments.

Thanks for your help in advance...

Feb 12 '07 #1
Share this Question
Share on Google+
9 Replies


P: n/a
I assume that brokerage due is calculated in the after update event of the
Premium Due control. If the Brokerage due control is not locked you should
be able to edit it - No?
"Haas C" <ha*****@yahoo.comwrote in message
news:11*********************@a75g2000cwd.googlegro ups.com...
Hi all!

Is there anyway I can override a value in a calculated field on a
form? For example:

I have a form which displays the following fields based on a query:

Premium Due field has the value of 12,527.75 in it.

Brokerage Due field is the calculated field which multiplies a factor
of 0.10 (10%) with the value in the Premium field. In this case, the
value in this field will automatically calculate to 1,252.775. I want
to be able to have the ability to be able to change the value in this
field to 1,253.00 or 1,252.78. The reason I want to be able to do so
is for accounting purposes. The Brokerage Due is often different from
what is actually paid due to rounding error. Therefore, I need to be
able to edit this to reflect actual payments.

Thanks for your help in advance...

Feb 13 '07 #2

P: n/a
Kevin,

The form is based on a Query in which the Brokerge due is calculated
within the uery. In other words, there is no After Update event. Any
suggestions?

Thanks!

On Feb 12, 7:42 pm, "Kc-Mass" <connearney_AT_comcast_PERIOD_net>
wrote:
I assume that brokerage due is calculated in the after update event of the
Premium Due control. If the Brokerage due control is not locked you should
be able to edit it - No?

"Haas C" <haas...@yahoo.comwrote in message

news:11*********************@a75g2000cwd.googlegro ups.com...
Hi all!
Is there anyway I can override a value in a calculated field on a
form? For example:
I have a form which displays the following fields based on a query:
Premium Due field has the value of 12,527.75 in it.
Brokerage Due field is the calculated field which multiplies a factor
of 0.10 (10%) with the value in the Premium field. In this case, the
value in this field will automatically calculate to 1,252.775. I want
to be able to have the ability to be able to change the value in this
field to 1,253.00 or 1,252.78. The reason I want to be able to do so
is for accounting purposes. The Brokerage Due is often different from
what is actually paid due to rounding error. Therefore, I need to be
able to edit this to reflect actual payments.
Thanks for your help in advance...- Hide quoted text -

- Show quoted text -

Feb 13 '07 #3

P: n/a
Haas C wrote:
Hi all!

Is there anyway I can override a value in a calculated field on a
form? For example:

I have a form which displays the following fields based on a query:

Premium Due field has the value of 12,527.75 in it.

Brokerage Due field is the calculated field which multiplies a factor
of 0.10 (10%) with the value in the Premium field. In this case, the
value in this field will automatically calculate to 1,252.775. I want
to be able to have the ability to be able to change the value in this
field to 1,253.00 or 1,252.78. The reason I want to be able to do so
is for accounting purposes. The Brokerage Due is often different from
what is actually paid due to rounding error. Therefore, I need to be
able to edit this to reflect actual payments.

Thanks for your help in advance...
I might have two columns in the query;CF (calced field) and IF (input
field). When I open the form, the default value of IF would be CF.

Drop for IF and CF on the form. Make CF visible = False.
Feb 13 '07 #4

P: n/a
Salad,

Thanks for the suggestion but i rather have one field. There's got to
be an easier way to do this. Thanks!
On Feb 13, 9:48 am, salad <o...@vinegar.comwrote:
Haas C wrote:
Hi all!
Is there anyway I can override a value in a calculated field on a
form? For example:
I have a form which displays the following fields based on a query:
Premium Due field has the value of 12,527.75 in it.
Brokerage Due field is the calculated field which multiplies a factor
of 0.10 (10%) with the value in the Premium field. In this case, the
value in this field will automatically calculate to 1,252.775. I want
to be able to have the ability to be able to change the value in this
field to 1,253.00 or 1,252.78. The reason I want to be able to do so
is for accounting purposes. The Brokerage Due is often different from
what is actually paid due to rounding error. Therefore, I need to be
able to edit this to reflect actual payments.
Thanks for your help in advance...

I might have two columns in the query;CF (calced field) and IF (input
field). When I open the form, the default value of IF would be CF.

Drop for IF and CF on the form. Make CF visible = False.- Hide quoted text -

- Show quoted text -

Feb 13 '07 #5

P: n/a
Eliminating the need for an override. Create a rounding function and use it
in your query.

dblRoundBrokerageDue([Premium Due] * 0.10)

"Haas C" <ha*****@yahoo.comwrote in message
news:11*********************@a75g2000cwd.googlegro ups.com...
Hi all!

Is there anyway I can override a value in a calculated field on a
form? For example:

I have a form which displays the following fields based on a query:

Premium Due field has the value of 12,527.75 in it.

Brokerage Due field is the calculated field which multiplies a factor
of 0.10 (10%) with the value in the Premium field. In this case, the
value in this field will automatically calculate to 1,252.775. I want
to be able to have the ability to be able to change the value in this
field to 1,253.00 or 1,252.78. The reason I want to be able to do so
is for accounting purposes. The Brokerage Due is often different from
what is actually paid due to rounding error. Therefore, I need to be
able to edit this to reflect actual payments.

Thanks for your help in advance...

Feb 13 '07 #6

P: n/a
Haas C wrote:
Salad,

Thanks for the suggestion but i rather have one field. There's got to
be an easier way to do this. Thanks!
You don't update calculated fields manually.

Since you are looking for a method to update the field but don't want to
mess with the calculated field's result perhaps you can modify the
Premium Due field so that it forces a correct calculation. IOW, make
the PremiumDue the calcuated field.

For example, plug in a value for where the calced field is. Then it
gives you the Premium Due result. It won't be what you want, but it
matches your calculation.

Good luck in your quest.
>

On Feb 13, 9:48 am, salad <o...@vinegar.comwrote:
>>Haas C wrote:
>>>Hi all!
>>>Is there anyway I can override a value in a calculated field on a
form? For example:
>>>I have a form which displays the following fields based on a query:
>>>Premium Due field has the value of 12,527.75 in it.
>>>Brokerage Due field is the calculated field which multiplies a factor
of 0.10 (10%) with the value in the Premium field. In this case, the
value in this field will automatically calculate to 1,252.775. I want
to be able to have the ability to be able to change the value in this
field to 1,253.00 or 1,252.78. The reason I want to be able to do so
is for accounting purposes. The Brokerage Due is often different from
what is actually paid due to rounding error. Therefore, I need to be
able to edit this to reflect actual payments.
>>>Thanks for your help in advance...

I might have two columns in the query;CF (calced field) and IF (input
field). When I open the form, the default value of IF would be CF.

Drop for IF and CF on the form. Make CF visible = False.- Hide quoted text -

- Show quoted text -


Feb 13 '07 #7

P: n/a
Ron,

Thanks for the suggestion but I realy need to override this. Thanks
again.

On Feb 13, 11:09 am, "paii, Ron" <p...@packairinc.comwrote:
Eliminating the need for an override. Create a rounding function and use it
in your query.

dblRoundBrokerageDue([Premium Due] * 0.10)

"Haas C" <haas...@yahoo.comwrote in message

news:11*********************@a75g2000cwd.googlegro ups.com...
Hi all!
Is there anyway I can override a value in a calculated field on a
form? For example:
I have a form which displays the following fields based on a query:
Premium Due field has the value of 12,527.75 in it.
Brokerage Due field is the calculated field which multiplies a factor
of 0.10 (10%) with the value in the Premium field. In this case, the
value in this field will automatically calculate to 1,252.775. I want
to be able to have the ability to be able to change the value in this
field to 1,253.00 or 1,252.78. The reason I want to be able to do so
is for accounting purposes. The Brokerage Due is often different from
what is actually paid due to rounding error. Therefore, I need to be
able to edit this to reflect actual payments.
Thanks for your help in advance...- Hide quoted text -

- Show quoted text -

Feb 13 '07 #8

P: n/a
Adding an actual paid field would solve you problem and provide useful
payment information without a override of the calculated value.

"Haas C" <ha*****@yahoo.comwrote in message
news:11**********************@m58g2000cwm.googlegr oups.com...
Ron,

Thanks for the suggestion but I realy need to override this. Thanks
again.

On Feb 13, 11:09 am, "paii, Ron" <p...@packairinc.comwrote:
Eliminating the need for an override. Create a rounding function and use
it
in your query.

dblRoundBrokerageDue([Premium Due] * 0.10)

"Haas C" <haas...@yahoo.comwrote in message

news:11*********************@a75g2000cwd.googlegro ups.com...
Hi all!
Is there anyway I can override a value in a calculated field on a
form? For example:
I have a form which displays the following fields based on a query:
Premium Due field has the value of 12,527.75 in it.
Brokerage Due field is the calculated field which multiplies a factor
of 0.10 (10%) with the value in the Premium field. In this case, the
value in this field will automatically calculate to 1,252.775. I want
to be able to have the ability to be able to change the value in this
field to 1,253.00 or 1,252.78. The reason I want to be able to do so
is for accounting purposes. The Brokerage Due is often different from
what is actually paid due to rounding error. Therefore, I need to be
able to edit this to reflect actual payments.
Thanks for your help in advance...- Hide quoted text -
- Show quoted text -


Feb 13 '07 #9

P: n/a
Haas C wrote:
Ron,

Thanks for the suggestion but I realy need to override this. Thanks
again.
What you "want" cannot be done. A field in a query and thus a control on a
form is either bound to a calculation (not editable) or to a field in a
table (editable). One control and/or query field cannot do both at the same
time.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Feb 13 '07 #10

This discussion thread is closed

Replies have been disabled for this discussion.