Results 1 to 3 of 3
  1. #1
    antwun91 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1

    Auto filling field based on information entered under another field

    Hi,

    I have a table with various metal types and the price per gram and another table with jobs. Using the form for jobs I am trying to have a box autofilled with the price per gram depending on which metal is selected.

    I apologise for the terrible wording.

    Anthony

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    A query joining the metal table and the Jobs table will do that for you.

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    Assuming your metal selector is a combo box; what you do is include the grams field also in the query that the combo box is using (it is in the combo box property).

    Then you have a choice to either link to that gram field and display it - or - call it (write) it permanently into the table of the form you are working in.

    Either way the syntax is going to be something like: Me.ComboboxName.column(2) where the grams field is the 2nd field.....

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

Similar Threads

  1. Replies: 3
    Last Post: 01-09-2015, 05:48 PM
  2. Replies: 1
    Last Post: 08-10-2014, 04:06 PM
  3. Replies: 1
    Last Post: 08-05-2014, 12:40 PM
  4. Replies: 3
    Last Post: 07-16-2013, 03:22 PM
  5. Auto filling a field in a table. Help please
    By tdanko128 in forum Access
    Replies: 2
    Last Post: 01-18-2011, 12:22 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