form/subform caclulation timing

From: Michael Watts (colorado_ski_bum_at_hotmail.com)
Date: 05/13/04


Date: 13 May 2004 10:02:57 -0700

I have an "order entry form" can be viewed at
http://www.skiandcode.com/form.jpg. This form is for entering orders
and I will describe the process. A person can spend only so much
money (a set limit and limited by the amount of money they pay in).
If someone sends in too much money they get a refund.

As a person types in the requested products in the subform (which uses
an autolookup query) the quantity is multiplied by the price to get
the total per item. When a person enters a quantity, in the before
update event, I have code that looks up the price of the current item
and if it will push them over the amount sent in it stops the item
from being entered and highlights the quantity and throws up a message
box stating that "the item would cost too much" etc.

  I then have a sum() function that totals the item totals and that is
put on the main form via direct reference in the textbox control
source. The refund field is calculated via subtracting the shiping
and handling and the calculated total (from the main form) from the
dollar amount sent in.

With all that said, Here is my real questions. When I try out the
form, the error traps or checking for going over the spendable amount
of money, the traps work. As I enter an item and finish the item, the
calculated total in the main form goes up and the refund amount goes
down. I go at what I would consider a "regular speed." But, when
the data entry people punch in the item data, (some are real fast on
10 key) the calculated total field and the refund fields do not update
until they get done entering the data. The refund field would say the
amount they sent in say $40, and it would go to 0 only when they get
done entering the items. Which at times has allowed the entering of
items that would push them over their spendable amount.

This can be a real problem because I need their entry speed but need
access 2000 to keep up with the error checking.

Michael Watts
Software Developer
colorado_ski_bum #NOSPAM# at hotmail D o T com



Relevant Pages

  • Re: [Full-disclosure] Root password change
    ... The amount of time needed to pop in a disk and hit reboot ... a "crypto safe"), which is the highest level, only specify entry protection ... of 10 man-minutes forced entry, 20 man-hours surreptitious entry, and ... the testing is done by an expert locksmith with special expertise in this ...
    (Full-Disclosure)
  • Re: Summing combinations to a known total problem, for cash-allocation / open-item accountin
    ... Am I missing something here? ... One of the main ideas behind dynamic programming is avoiding solving ... If amount has more than one entry, ...
    (sci.math)
  • Re: Taxes and dividend stocks.
    ... A DRIP invests for you four times per year, ... The amount of time entering the transactions in my ... even if your broker charged no commissions at all. ...
    (misc.invest.stocks)
  • RE: Can anyone povide step by step instructions on how to do the follo
    ... amount into and a Worksheet_Changeevent to detect when the budget amount ... entry changes and go put the amount in the proper cell. ... Ive created an excel spreadsheet using simple =sumcommands for the ...
    (microsoft.public.excel.misc)
  • Re: Firefox Character Encoding ?
    ... >>> Not a problem in itself, but when entering an amount to pay, I get ... > " invalid character in amount " ... By deleting all the pre-entered figures, ...
    (comp.sys.acorn.apps)