Results 1 to 6 of 6
  1. #1
    Drewd is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2018
    Posts
    4

    Not Sure if done in Form or in Table

    So I am building a quote database in an existing customer database for the company I work for. I have a master table where the quotes are stored once entered in the form. The first section is basic either a manual entry or using combo boxes tied to tables, but when I get to the parts selection I would like based on the description selected it to auto fill the cost per part plus the selling price. I have a single table built for this listing part description, cost price, and list price. Do I make the connection in the table or do I make the connection in the form? Based on which one how do I do it?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Options:

    1. use multi-column combobox that includes the descriptive fields (can be hidden columns), then textbox has expression that references column of combobox by index, index begins with 0 so if the info is in column 2 its index is 1: =combobox.column(1)

    2. include the lookup table in the form RecordSource by joining to the data table, bind textboxes to descriptive fields and set Locked Yes and TabStop No

    3. DLookup() expression in textbox

    If you want to save the price into the record that will require code (macro or VBA).
    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. #3
    Drewd is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2018
    Posts
    4
    If I use option #1 can I still use for a calculated field when applying a quantity to value to get a total price. If so how do I word the expression?

  4. #4
    Drewd is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2018
    Posts
    4
    One of the fields is a text field and the other is a number field I have double checked in the table I am pulling from to populate the multi column combo box.

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Yes, should be able to use the values from combobox column in calculations.

    I already describe how to reference the columns. So either use that or reference the textboxes that reference the combobox.
    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.

  6. #6
    Drewd is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2018
    Posts
    4
    That did work thank you for your help!

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

Similar Threads

  1. Replies: 2
    Last Post: 11-11-2016, 09:07 AM
  2. Replies: 6
    Last Post: 12-13-2014, 09:20 PM
  3. Replies: 1
    Last Post: 07-01-2014, 01:41 PM
  4. Replies: 2
    Last Post: 10-07-2013, 11:01 AM
  5. Replies: 2
    Last Post: 08-01-2011, 11:35 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