473,320 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Overriding a calculated field on a form

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
9 7770
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Anonymous | last post by:
Hi all, I have a form people use to enter checking data. One of the fields is calculated based on finding the difference of two input fields on the form. Here are the fields: CheckAmount...
1
by: Miguelito Bain | last post by:
hi everybody. i'm trying to find out what you can and can't do with/in calculated fields. any help, pointers, and/or advice would be greatly appreciated. i'm a newbie, but i want to learn, and...
1
by: douh | last post by:
I know that this is not the way, however I need to save certian calculated values so that they do not change over time, ie. new tax rates etc. This is for an invoice header and invoice subform. I...
1
by: Norbert Lieckfeldt | last post by:
MS Access 2002 here. I am just trying to set up a simple database for a friend who's an optician. Basically, all clients with address details, date of last eyetest and a drop-down combo box to...
2
by: david | last post by:
Hi, I have a form with a couple of calculated fields. I want to put some code into the 'Form-Load' event to set various object states on the form, depending on the value of these fields. The...
1
by: tconway | last post by:
I have an Access program that displays Customer data into a form and OrderID data into a subform. The totals in the Subform are based on calculated fields, i.e. the Total Amount field Calculates...
2
by: markm75c | last post by:
Does anyone know of a way to sort a column which isnt databound or an actual field in the database, but is derived from a method? IE. I have a grid showing stats for softball, with a calculated...
3
by: kelley.l.turner | last post by:
Hi all, I am very new to MS Access so please bear with me! I have created a simple calculated field in my data entry form, yet when I view my data table or try to generate a report based on...
2
by: jcf378 | last post by:
hi all. I have a form which contains a calculated control ("days") that outputs the # of days between two dates (DateDiff command between the fields and ). However, when I click "Filter by...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.