Results 1 to 12 of 12
  1. #1
    buck is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    26

    Combo Box Question

    Hi,



    I have a combo box on a form with claim #s. When selecting a claim # the appropriate record displays, but when using the record selector to advance to the next record, the combo selection does not update. Is there a way to correct this please?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    The combo will have a rowsource which identifies the records and the order of those records in the combo.

    If you are processing records in some sort of loop, then movenext (unless you're at EOF) should get you the next record.

    What "record selector are you referring to"?

  3. #3
    buck is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    26
    By way of the standard record selector in Properties that allows advancing forward and backward.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    What is the rowsource of your combo?
    What is the recordsource of the Form?

  5. #5
    buck is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    26
    both are the same table

  6. #6
    buck is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    26
    this is what needed to be done; I pulled this from a previous database of mine.

    Private Sub Form_Current()
    Combo99 = Claim_Prefix

    End Sub

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    How about showing us the details (query SQL) of
    -the Form's recordsource and
    -the Combo Rowsource (query or value list)

    Note: Just reopened this forum and see your post is Solved?

  8. #8
    buck is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    26
    as I mentioned earlier, the form's source is a table and the combo is also the same table; the unique ID is the claim #

  9. #9
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    There is no inherent Order in a Table. If you want records to be in a specific Order, you must use a Query with an Order By clause.

  10. #10
    buck is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    26
    I think my initial inquiry was misread, I was not asking for a specific order, I was asking how to code so the combo values would match the form value when using the record selector to advance to the next record. The OnCurrent code that I posted does this. So I'm good. Thanks.

  11. #11
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by buck View Post
    Hi,

    I have a combo box on a form with claim #s. When selecting a claim # the appropriate record displays, but when using the record selector to advance to the next record, the combo selection does not update. Is there a way to correct this please?
    I don't think I have ever associated a combo with a form's On Current event. I have associated combos with On Load events when a form opens to a specific record and the form's navigation buttons are disabled.

    I use combos to help with user input and not to display info that I would normally use a subform for.

  12. #12
    buck is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    26
    cbo are good for multiple purposes, I've always used them to display accounts by selection, I prefer to have the form open blank and then make a selection, etc., works well. The OnCurrent event is one I've used for several years . . . just forgot about it. Have a good day.

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

Similar Threads

  1. Replies: 4
    Last Post: 08-25-2012, 07:19 PM
  2. Combo Box question!!
    By johnjohnson in forum Forms
    Replies: 2
    Last Post: 12-10-2011, 02:41 PM
  3. Question-Combo-Box
    By rockrider in forum Forms
    Replies: 1
    Last Post: 02-16-2011, 06:24 PM
  4. Combo box question
    By nkenney in forum Forms
    Replies: 1
    Last Post: 07-09-2009, 08:08 PM
  5. A combo box question
    By GeorgeD in forum Forms
    Replies: 3
    Last Post: 05-05-2008, 10:53 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