473,382 Members | 1,329 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,382 software developers and data experts.

Requery won't update unbound field calculations - advice please

Hi:
Hi:

I have a form which is based on a query, and is being used to update a table. It all works
well, except for one thing. I have a number of unbound calculation fields (total value,
Labor Value, etc) which are based on the contents of the records. Within the records
themselves there are also calculated fields (Line item value). When I change a critical
field (price per unit), and do a Refresh (through a macro linked to the after update event
on the field), it recalculates the LINE item value (that is, the value for this record),
but does NOT recalculate the unbounded field values (Total Labor value etc).

How do I force recalculation of unbounded calculations? These are on the same form, and
used the same data as the line items.

A bit perplexing, and the manuals are less than helpful on this point.

Regards

John Baker
Nov 12 '05 #1
2 3878
Normally, the calculations are done almost as soon as you type in the value,
depending on what the calculation is. However, there are some that won't.
Try Me.Recalc to see if that will redo them.

--
Wayne Morgan
MS Access MVP
"John Baker" <Ba******@Verizon.net> wrote in message
news:fe********************************@4ax.com...
Hi:
Hi:

I have a form which is based on a query, and is being used to update a table. It all works well, except for one thing. I have a number of unbound calculation fields (total value, Labor Value, etc) which are based on the contents of the records. Within the records themselves there are also calculated fields (Line item value). When I change a critical field (price per unit), and do a Refresh (through a macro linked to the after update event on the field), it recalculates the LINE item value (that is, the value for this record), but does NOT recalculate the unbounded field values (Total Labor value etc).
How do I force recalculation of unbounded calculations? These are on the same form, and used the same data as the line items.

A bit perplexing, and the manuals are less than helpful on this point.

Regards

John Baker

Nov 12 '05 #2
Wayne:

Thanks a lot that works very well indeed! Just exactly what I needed!

Regards

John Baker

"Wayne Morgan" <co***************************@hotmail.com> wrote:
Normally, the calculations are done almost as soon as you type in the value,
depending on what the calculation is. However, there are some that won't.
Try Me.Recalc to see if that will redo them.


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: N. Graves | last post by:
I have not been successful with updating a query for a sub form of a tab control of a sub form of a form. Basically I have a form that has a combo box to select an equipment record and on this...
1
by: Chris Belcher | last post by:
I have a unbound form with 2 subforms. It looks something like this _______________________________________________ | | | | | ...
6
by: Tim Marshall | last post by:
Here's the situation. A form, frmSetUp, with a subform control called subExplain with a source object form frmSetUpSubDefineSides. The source object is a bound form, displaying a few records, no...
18
by: TORQUE | last post by:
Hi, Im wondering if anyone can help me with a problem. I have a form with more than 50 unbound fields. Some of the fields will be blank from time to time. This seems to be where im having...
2
by: jay | last post by:
Hi. I have created an unbound combo box in a form whose purpose is to pass parameters to a query and then requery the requery. The unbound combo box is named "ClosedFilter" The two parameters...
3
by: mcmahonb | last post by:
Hey people... I've been searching this forum for a few hours and even though this topic has been went over from many different angles; I cannot seem to figure out how to make things work on my...
8
by: Michael R | last post by:
Dear users and experts, An unbound combo box in my form is responsible for changing a city name for an update query that creates a temprorary table which the form uses as its record source. In...
4
theaybaras
by: theaybaras | last post by:
Hi All... I've read both of the requery discussions I could find... Refresh ComboBox After Adding New Values via a Seperate Form and refresh a form but am not quite able to get this to apply...
2
by: jamesnkk | last post by:
I have an Invoice form that consist of main form and a sub form. Main form consist of customer address and contact...etc Sub form is a continue form for item purchase. I have an unbound field -...
1
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.