PC Review


Reply
Thread Tools Rate Thread

Default Value on Form Help

 
 
Mariela
Guest
Posts: n/a
 
      30th Apr 2010
I have a query that calculates the total of a field in my table - Field Name
in my Table is Total Value which calculates the total for a series of records
that has the same invoice number. Field in in my query is Aggregate Value.
I now have a form where I bring in the Aggregate Value. I need to create
another Text box Value Verified where I bring in the Aggregate Value as a
default, but I may have to change it if the Value has changed - but the
Aggregate Value has to remain the same.

I tried using default value on the form for the Value Verified Text control
that brings in the Aggregate Value but it does not work -

does anyone have a suggestion?
--
Regards - MD
 
Reply With Quote
 
 
 
 
Al Campagna
Guest
Posts: n/a
 
      30th Apr 2010
Mariela,
As a general rule, don't save the value of a calculation in a table.
Re-Calculate the value "on the fly" whenever it is needed in any
subsequent form,
query, or report.
For example: Price * Qty = LineTotal
Line Total would not be saved in a table, only Price and Qty. Wherever
Line Total is needed, just recalculate Price * Qty... to get it

The same would hold true for a value derived from adding the value on
several records...

>>but I may have to change it if the Value has changed

That's the problem with "saving" a calculation. If any of the elements
change, the "saved" value must also be changed. So... just use an unbound
calculated field, calculate on the fly, and avoid that problem.
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."


"Mariela" <(E-Mail Removed)> wrote in message
news:E8BD3C0E-BD86-4019-B04E-(E-Mail Removed)...
>I have a query that calculates the total of a field in my table - Field
>Name
> in my Table is Total Value which calculates the total for a series of
> records
> that has the same invoice number. Field in in my query is Aggregate
> Value.
> I now have a form where I bring in the Aggregate Value. I need to create
> another Text box Value Verified where I bring in the Aggregate Value as a
> default, but I may have to change it if the Value has changed - but the
> Aggregate Value has to remain the same.
>
> I tried using default value on the form for the Value Verified Text
> control
> that brings in the Aggregate Value but it does not work -
>
> does anyone have a suggestion?
> --
> Regards - MD



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom contact form replaced with the default OL form for another user Alexey Titov Microsoft Outlook Form Programming 0 31st Mar 2010 11:06 AM
Custom Form overwriting the default appointment form in outlook 20 Irina Microsoft Outlook Form Programming 1 14th May 2009 07:17 PM
setup project: how to add a custom form and make the form as default Jason Microsoft Outlook Program Addins 5 3rd Mar 2009 06:57 AM
How can one change programmatically calendar folder's default form to custom form? HH Microsoft Outlook Program Addins 1 11th Nov 2004 02:34 PM
Default values to load up automatically in a form based on value entered in another form Anthony Dowd Microsoft Access Forms 8 12th Aug 2004 08:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:47 AM.