Results 1 to 6 of 6
  1. #1
    buckwheat is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2013
    Posts
    144

    subform a little tricky


    I have an unbound form that has several subforms one containing a cbo to drive results on each subform. when the main form opens all subforms are hidden. The main form has several cmd buttons to execute visibility for each form. this is why the cbo is not on the main form, but on a subform instead.

    The problem is when the main form opens, the cbo has a selection made so all subforms are populated. . . how can I get the cbo to be blank when the cmd button for this subform is selected. . . not quite sure how to do this since the cbo is on a subform and not the main form.

    Thanks in advance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Why does the cbo have a value? Is it bound to field? Is purpose of the cbo only to select filter criteria?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    buckwheat is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2013
    Posts
    144
    the form has a record source of "Group Table." The cbo's row source is the "group ID" in the Group Table. The goal is to be able to use these subforms for both data entry of new groups and to editing of existing groups. If the group exists, then user would select from the cbo box to display results in relative fields on form. If the group is new, user would select enter data into form and data is populated in the Group Table and the cbo would also update with the new group #.

    If a user selects from the cbo box and makes changes and then they need to add a new group, I've put a cmd button on to add new record and then the form clears the cbo selection from the form and a blank form is ready for data entry. They can also do this to clear the form after it's open if I can't find a resolution to this problem.

    Thanks.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    On a bound form, you don't 'clear' the form for new entry, you must move to a new record row. Again, on a bound form, the combobox cannot be used for both data entry and to enter search criteria, one or the other only.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    buckwheat is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2013
    Posts
    144
    Ok thanks, they can use the cmd to move to a new record. The bound form does not use the cbo for data entry. I have an unbound Group field on the form to do this. Thanks again.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Issue resolved?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Tricky SQL Question
    By ttocsmi in forum Queries
    Replies: 8
    Last Post: 10-01-2012, 10:04 AM
  2. Tricky Analysis??
    By stumped in forum Queries
    Replies: 2
    Last Post: 09-13-2012, 01:59 AM
  3. tricky trash can counting
    By M_Herb in forum Access
    Replies: 3
    Last Post: 02-16-2012, 10:42 AM
  4. Tricky (for me) SQL Query using COUNT
    By acdougla17 in forum Access
    Replies: 1
    Last Post: 10-31-2011, 01:49 PM
  5. Tricky Values in a Combo Box
    By vt800c in forum Forms
    Replies: 5
    Last Post: 05-19-2011, 01:33 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