Results 1 to 4 of 4
  1. #1
    handjor is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    2

    Default Values in a form


    How can I fill multiple items in a form with values based on a previous selection in a form? For instance, If I select an item in an inventory, how would I make the price of the item automatically fill later in the form?

    See image below. If I enter the red circled field. How can the Blue circled field fill from the employee_fk id in the employee table?


  2. #2
    desibabu90 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    39
    When you design your combo box you have select multiple columns to store the value associated with your employee_fk. In the properties u can just change the value of the following columns to 0" to hide the values.

    Then in the after update you can push your data by:

    Me.costcode= Me.[Employee Combo].Column(n). n stands for the column number that value is in the combo box. Note that the column increment starts at 0.

  3. #3
    handjor is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    2
    Perfect that worked excellently.

  4. #4
    desibabu90 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    39
    Great! And welcome to access forums! im relatively new here as well and people here are very helpful!

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

Similar Threads

  1. Replies: 3
    Last Post: 07-30-2011, 09:12 PM
  2. option group default values
    By wlumpkin in forum Access
    Replies: 3
    Last Post: 02-15-2011, 03:30 PM
  3. option group default values
    By wlumpkin in forum Access
    Replies: 6
    Last Post: 02-07-2011, 06:07 PM
  4. Setting default values in columns
    By crownedzero in forum Programming
    Replies: 0
    Last Post: 06-17-2009, 06:45 AM
  5. Default Values
    By twainscott in forum Programming
    Replies: 0
    Last Post: 09-14-2006, 11:18 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