Results 1 to 5 of 5
  1. #1
    haritbhasin is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    18

    Setting up default value in combo box using different table.

    Hi,


    I want to set a default value in a combo box. The source of the combo box is another table. I am able to pull the values from the this table in the combo box. I am able to select the values. But i want to set a default value in the combo box from the source table so that if no value is selected then that default value should be there.

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    In Form Design View select the Combobox and go to Properties - Data and set the Default Value Property to whatever you like.

    Linq ;0)>

  3. #3
    haritbhasin is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    18

    Re: Setting up default value in combo box using different table.

    Hi,

    Thanks for. Your reply. I know how to set the default. Value. But I need to set the default value using a table that is the source for the combo box. I want to set one id from the that table as a default value for the combo box so that if nothing is selected that value should be stored in the relationship table.

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    How do you plan to identify which ID to set as the Default?

    Linq ;0)>

  5. #5
    haritbhasin is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    18
    Hi,

    I am able to set the default value in the sub-form. But not able to load once the form is loaded. In the below screenshot The default value is displayed only when then first time the value in the itype is selected and i also want to set the default values in the solution and in the industry also but no values are loaded.
    I want to load the default values in all 3 drop-downs as soon as the form is loaded.

    Click image for larger version. 

Name:	screenshot.jpg 
Views:	13 
Size:	127.0 KB 
ID:	9862

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

Similar Threads

  1. Replies: 1
    Last Post: 10-25-2012, 12:58 PM
  2. Setting default vaulue?
    By djclntn in forum Forms
    Replies: 17
    Last Post: 04-12-2012, 11:20 PM
  3. Replies: 4
    Last Post: 12-21-2011, 02:45 AM
  4. Form Field Default Setting
    By roofbid in forum Programming
    Replies: 3
    Last Post: 12-17-2010, 10:53 AM
  5. Replies: 1
    Last Post: 11-01-2010, 06:59 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