Access 365 - Default Value in Combo Box

Anonymous
2018-06-22T02:54:10+00:00

Hi All

I am using the Inventory DB Template and I am trying to set a default value in the "Ship Via" Combo Box. I have one entry [Company] in the Shippers table which I want to populate the combo box every time I open the form where a selection is required.

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} vote

8 answers

Sort by: Most helpful
  1. Anonymous
    2018-06-22T03:01:38+00:00

    Hi 

    A couple of screenshots to clarify

    0 comments No comments
  2. Tom van Stiphout 40,086 Reputation points MVP Volunteer Moderator
    2018-06-22T03:31:22+00:00

    You could look up the ID value in the Shippers table, and put that number in the Default Value property.

    0 comments No comments
  3. Anonymous
    2018-06-22T03:52:12+00:00

    Thanks Tom

    I have been trying to do that, I am missing something in my in my SQL query. The ID is 5, any help would be appreciated

    Thanks

    0 comments No comments
  4. Doug Robbins - MVP - Office Apps and Services 322.1K Reputation points MVP Volunteer Moderator
    2018-06-22T05:46:37+00:00

    If 5 is appearing in the combobox, you need to adjust the width of the columns in the combobox, setting the width of the ID column to 0, so that space is available for the Company.

    0 comments No comments
  5. Anonymous
    2018-06-22T08:41:15+00:00

    Thanks Doug but thats not the problem. Nothing is appearing in the combo box which is the problem. ID 5 is the ID of the row which i want to show in the combo box by default. 

    I am pretty sure i need a SELECT query dithe rin the default property or similar

    0 comments No comments