Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    where?

    Ok my product table has


    ProductID
    ProductCode
    ProductName
    ProductSupplier
    Age

  2. #17
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Bind a form to the Orders table.

    On that form, build a combobox to list the products. The combobox can have multiple columns http://datapigtechnologies.com/flash...combobox3.html. These columns can contain all the fields of the Products table.

    To display the product info elsewhere (outside the combobox list) on form, have textboxes with expressions that reference combobox columns by index (index begins with 0), such as: =[comboboxname].[Column](1)

    Now you have to decide whether or not to save the product price or product ID into Orders table because prices can change over time and do not want new price to override price used for old orders. Saving the price will require code (macro or VBA). Alternatively, save the ID and create a new record in Products when a product price changes and have a field in Products to indicate 'inactive' or a date field that can be used to retrieve the latest price record for each product and then restrict the combobox list to only active price records when entering a new order record - will also require some VBA code.
    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.

  3. #18
    Raleyoz is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2015
    Posts
    17
    Finally, love your work and effort
    I will try this today
    And your final point is potentially true but in 99.9%of the time the price rise will accompany a new version of the product which will be a new product, so if it happens I could just enter it as a v2 (version 2)
    Thank you

  4. #19
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    You may get some ideas from this post. You are a self-identified "noob", so there may be more to your question/solution than you have described.
    Good luck.

  5. #20
    Raleyoz is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2015
    Posts
    17
    Quote Originally Posted by June7 View Post
    Bind a form to the Orders table.

    On that form, build a combobox to list the products. The combobox can have multiple columns http://datapigtechnologies.com/flash...combobox3.html. These columns can contain all the fields of the Products table.

    To display the product info elsewhere (outside the combobox list) on form, have textboxes with expressions that reference combobox columns by index (index begins with 0), such as: =[comboboxname].[Column](1)
    i have created the combobox and it dropsdown correctly with the info i have selected, so far so good
    now to enter the expression like you recommend, where do i enter this i am pretty sure it is to be done in the Form design, but where exactly do i enter =[comboboxname].[Column](1)

    thanks

  6. #21
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    In a textbox ControlSource property.
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. switchboard driving me nuts
    By bbxrider in forum Forms
    Replies: 4
    Last Post: 12-06-2014, 06:24 PM
  2. error 3075...making me nuts
    By graccess in forum Forms
    Replies: 24
    Last Post: 01-24-2014, 07:03 AM
  3. Can't create relationships (Driving me nuts!!)
    By zlloyd1 in forum Database Design
    Replies: 2
    Last Post: 08-12-2012, 08:49 PM
  4. SELECT Query, Driving Me Nuts!!
    By mystifier in forum Queries
    Replies: 4
    Last Post: 04-21-2011, 04:00 PM
  5. Access 2007 Form Changes Driving Me Nuts
    By Patrick.Grant01 in forum Forms
    Replies: 3
    Last Post: 05-19-2009, 09:17 AM

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