Results 1 to 5 of 5
  1. #1
    mindbender is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    283

    User Editable Price Field flows through to calculations


    I have a form that has the following set up
    Click image for larger version. 

Name:	Capture.PNG 
Views:	11 
Size:	7.9 KB 
ID:	42297

    Is it possible to have the Custom Price field editable by the user so that if they populate it, it multiples by the QTY1 field value and overwrites the Total Base Price Field. The BasePrice1field is originally populated from the columns returned by the row source of the cbx_term1 field and then multiplied by the value the user enters into field QTY1 to populate the Total Base Price field

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,540
    Try:
    =IIF(IsNull([Custom Price],[BasePrice1]*[QTY], [Custom Price]*[QTY])
    as the ControlSource property of "Total Base Price" instead of =[BasePrice1]*[QTY]
    Last edited by Bob Fitz; 06-26-2020 at 11:09 AM. Reason: Mis-quoted property
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    mindbender is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    283
    Quote Originally Posted by Bob Fitz View Post
    Try:
    =IIF(IsNull([Custom Price],[BasePrice1]*[QTY], [Custom Price]*[QTY])
    as the ControlSource property of "Total Base Price" instead of =[BasePrice1]*[QTY]
    THANK YOU VERY MUCH. That did the trick.

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,540
    Quote Originally Posted by mindbender View Post
    THANK YOU VERY MUCH. That did the trick.
    Glad it worked for you

    Just curious. Why aren't QTY and Custom Price bound to a field in the forms Record Source?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    mindbender is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    283
    Quote Originally Posted by Bob Fitz View Post
    Glad it worked for you

    Just curious. Why aren't QTY and Custom Price bound to a field in the forms Record Source?

    Every field is unbound as they are calculated from custom control sources and none of the data is saved. It is a margin calculator so they data stays populated untitl they either close the database or hit the refresh button

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Editable field
    By Kundan in forum Forms
    Replies: 7
    Last Post: 02-15-2019, 02:12 PM
  2. Replies: 3
    Last Post: 10-30-2018, 09:48 AM
  3. One editable form field
    By adame in forum Forms
    Replies: 2
    Last Post: 01-19-2017, 05:38 AM
  4. Replies: 5
    Last Post: 11-23-2014, 03:54 PM
  5. Replies: 1
    Last Post: 03-19-2014, 12:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums