Results 1 to 5 of 5
  1. #1
    Grizz2 is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    7

    Combo Box Requery Issue

    I have two combo boxes (PACTypeID and PACCodeID). PACCode ID is dependent on the selection made in PACTypeID. The default view for this form is datasheet so that I can see all entries. The problem is once I enter my first record and go to enter the second record, I can no longer see the first record.

    Background info:
    Event procedure on PACTypeID:
    cmbPAC_type_AfterUpdate ()
    cmbPacCode.Requery

    There are 3 PACTypes: Payment, Credit and Debit. Dropdown list for PACCodeID is determined by PACType selected.

    Example:
    If I select PACType "Payment", I get a list of Payment PACCodeIDs to choose from. I make my selection. Then I add a new record and select PACType "Credit" this time. I get a list of Credit PACCodeIDs to choose from, but the Payment PACCodeID I selected on the prior record is no longer visible (although it it stored).

    I want my datasheet to look like this:
    PACType PACCodeID
    Payment Patient Payment
    Credit Insurance Adjustment


    Payment Insurance Payment
    Debit Bad Debt Recovery

    Right now, it looks like this:
    PACType PACCodeID
    Payment
    Credit
    Payment
    Debit Bad Debt Recovery

    How can I get the entries to remain visible?

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Watch this free video tutorial on cascading combos and see if it helps.
    http://www.datapigtechnologies.com/f...combobox2.html

  3. #3
    Grizz2 is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    7

    Selection still disappears

    Awesome tutorial. Certainly helpful. It confirms that I have used requery correctly. My issue still exists. The difference between the example provided in the tutorial and my form is that my form is a datasheet view so there are multiple records show on one sheet. When I enter the next record, the selection in the first record disappears from view. What am I missing?

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Try this one. I haven't used it or studied it, but I am familiar with the author
    AD Tejpal.

    http://www.rogersaccesslibrary.com/f...l?KW=combo#576
    Last edited by orange; 06-03-2011 at 01:15 PM. Reason: spelling

  5. #5
    Grizz2 is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    7
    This looks like it might be the answer! I will let you know in a few days after I have a chance to sit down with this again. Thanks!

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

Similar Threads

  1. Help with Combo Boxes/requery....etc
    By noaccessguru in forum Forms
    Replies: 9
    Last Post: 06-06-2011, 05:50 PM
  2. Replies: 1
    Last Post: 03-13-2011, 02:29 PM
  3. Replies: 1
    Last Post: 03-26-2010, 10:32 PM
  4. Replies: 6
    Last Post: 01-13-2010, 02:41 PM
  5. Combo box Issue
    By desireemm1 in forum Access
    Replies: 2
    Last Post: 09-06-2009, 03:56 PM

Tags for this Thread

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