Results 1 to 3 of 3
  1. #1
    mitchy1111 is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2009
    Posts
    9

    Combo box - Open at last item selected


    Hi,

    I have a combo box on a continuous form which lists values from a table. When the user selects the first item from the list, how can I get the combo box to re-open at the same point in the list when they move to the next line in the form?

    Regards

    Mitchy

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    How about setting the "Default" value: http://access.mvps.org/access/forms/frm0012.htm

  3. #3
    mitchy1111 is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2009
    Posts
    9

    Assign default value - Error

    Thanks RuralGuy, think I am almost there with your solution. I can get it to assign the default value of a text field, but I need it to assign the default value to a combo box with a numeric datatype. I get the error 'object doesn't support this property or method'.

    I have the following code which you suggested:

    Const cQuote = """"
    Me!ID.DefaultValue = cQuote & Me!ID.Value & cQuote


    As the field is a number I tried removing the quotes, but got the same error.

    Thanks

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

Similar Threads

  1. Replies: 7
    Last Post: 08-31-2011, 05:09 PM
  2. Replies: 4
    Last Post: 07-27-2011, 09:52 AM
  3. Replies: 1
    Last Post: 11-23-2010, 01:30 PM
  4. Replies: 3
    Last Post: 10-07-2010, 09:36 AM
  5. Combo-box to select item to edit in Form
    By DHavokD in forum Forms
    Replies: 7
    Last Post: 06-05-2009, 01:39 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