Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Sep 2001
    Location
    Stuck at work..., Missouri, USA
    Posts
    248
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Continuous forms (2000)

    I am working on an applicaiton similar to a Point of Sale. I am trying to use a continuous form to hold my sales items as it handles adding additional items nicely.

    In trying to calculate the extended price (quantity * price) I have a text box to hold the value, but not store it in the table.

    I am doing the calculation in the onTimer event. It works great for the first item. When I add a second item, however, the total disappears until my second contains enough info to calculate a value. Then it shows that value for ALL items on the form. Not a good thing.

    How can I fix this?

    Thanks!
    <font face="Comic Sans MS">Morgan Erickson</font face=comic>
    morgan.erickson@sprint.com
    <img src=/S/flags/USA.gif border=0 alt=USA width=30 height=18>-From <img src=/S/flags/Colorado.gif border=0 alt=Colorado width=30 height=18> but living in <img src=/S/flags/Missouri.gif border=0 alt=Missouri width=30 height=18>...and working in Kansas.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Continuous forms (2000)

    Instead of calculating the extended price in code, do one of the following:

    - Place a text box on the form with control source =[Quantity]*[Price] substituting the correct names, of course.

    or

    - Calculate the extended price in a query and use the query as record source for the form.

  3. #3
    3 Star Lounger
    Join Date
    Sep 2001
    Location
    Stuck at work..., Missouri, USA
    Posts
    248
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Continuous forms (2000)

    Option 1 worked perfectly, thanks!
    <font face="Comic Sans MS">Morgan Erickson</font face=comic>
    morgan.erickson@sprint.com
    <img src=/S/flags/USA.gif border=0 alt=USA width=30 height=18>-From <img src=/S/flags/Colorado.gif border=0 alt=Colorado width=30 height=18> but living in <img src=/S/flags/Missouri.gif border=0 alt=Missouri width=30 height=18>...and working in Kansas.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •