Results 1 to 3 of 3
  1. #1
    Frank_B is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    2

    Dynaset requery single record


    Hi all,

    I've got a problem with requerying a single record in a dynaset formtype.

    Currently I'm tasked with rebuilding the find database for an archaeological project. The project leader wants to work in a "table-like" form so I have to work with a dynaset form (or continuous form I believe you can call it too?).

    Anyway, in the form there are two comboboxes, 'material' and 'category'. When a material type has been selected, the category combobox will requery based on that answer. So if one chooses ceramics, only categories that are ceramics can be selected from the category box.

    I use the requery function in the material afterupdate to reset the category box for every new record (the material field must always be filled in first).

    The problem I have is that when someone wants to change a previous category entree, the query is set for the last selected material group. So if you last created a record with the material type "glass" and you want to change a previous record that has the material "ceramics", only glass categories can be selected. This can only be solved to reselect the material type of that record.

    My question: is it possible to requery the category combobox based on the material combobox of the same record even if you want to 'update' a previous record?

    I hope I made myself clear. If not, let me know!

    Frank

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    The combobox requery will use the material value of the current record, that is whatever record has focus. Can put the requery code in the category combobox GotFocus event.
    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
    Frank_B is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    2
    Thank you! It works now.

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

Similar Threads

  1. Replies: 3
    Last Post: 01-31-2014, 09:13 AM
  2. Editing with RecordSet Type = Dynaset
    By Access_Novice in forum Forms
    Replies: 4
    Last Post: 01-21-2014, 01:45 PM
  3. Requery But Stay on Same Record
    By burrina in forum Forms
    Replies: 1
    Last Post: 12-18-2012, 03:08 PM
  4. Requery Current Record ONLY
    By jle0003 in forum Queries
    Replies: 1
    Last Post: 10-17-2012, 12:45 PM
  5. Requery and return to same record
    By tylerg11 in forum Forms
    Replies: 3
    Last Post: 04-05-2012, 11:51 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