Results 1 to 4 of 4
  1. #1
    Podder is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Posts
    22

    Changing values based on a field

    Hi,


    i have a products table with a field of unit price and a reps table that has a list of reps names.
    what I want to know is, can I change the unit price of products when a certain reps name is used on a form?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I'm sure you could, but the bigger question is "what is the logic for having a different product price based on Rep"?
    Perhaps you could describe the situation and provide a sample to clarify.

  3. #3
    Podder is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Posts
    22
    Quote Originally Posted by orange View Post
    I'm sure you could, but the bigger question is "what is the logic for having a different product price based on Rep"?
    Perhaps you could describe the situation and provide a sample to clarify.
    Orange,
    The logic is that the Rep is in a different country and as such their prices are a percentage higher.
    I have created forms associated with customers and orders which then go to an Invoice report. All works well but the only way I can have different prices is by having two seperate products and values on the products table (this is done by the use of ProductID being different for the same product).
    From this I was just wondering if there was a way to create an increased price when associated with the one rep.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    So the price should really be associated with country. No matter how you associate the data, will need multiple product records. Unless you calculate the price by adding or subtracting a percentage.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Changing a field value based on a new record
    By griztkojr in forum Programming
    Replies: 5
    Last Post: 02-13-2018, 03:02 PM
  2. Replies: 1
    Last Post: 12-10-2017, 01:47 AM
  3. Changing table values based on IF statement
    By tylerpickering in forum Queries
    Replies: 6
    Last Post: 04-01-2014, 10:46 AM
  4. Replies: 1
    Last Post: 02-19-2014, 11:07 AM
  5. Changing Field Values with Command Button
    By avarusbrightfyre in forum Access
    Replies: 1
    Last Post: 08-22-2010, 12:48 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