Results 1 to 11 of 11
  1. #1
    srcacuser is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2011
    Location
    Northern Virginia
    Posts
    15

    Updating form from datasheet

    Hello,
    I'm still a noob and trying to find out how to accomplish this.



    I have a form with many fields that also contains a subform at the very bottom. After a user searches for a record(s) in the main form, the filtered results show up in the subform. The default view of that subform is a datasheet. It has record selectors, so I can see that I can move between records when clicking. Is there a way to update/refresh the main form above with the exact record that is highlighted in the subform?

    Afterupdate in the subform?

    Thanks in advance.

  2. #2
    Toyman is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    233
    There are many ways of doing this depending on how your form is set up. Post your db here so we can take a look

  3. #3
    srcacuser is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2011
    Location
    Northern Virginia
    Posts
    15
    Toyman, sorry for the delay. I had to sanitize and enter dummy data.

    I'm trying to make a simple way to retreive/view drafting records. Each record has a drawing number. There may be many records sharing the same drawing number, but the revisions (REV) are unique to each new record: Ascending X0, X1, and so on.

    The main page is the SEARCH_DATABASE1, which has a find-as-you type module for quick record searching. At a desired record, the EDR button on the left will bring up DRAFTER_INPUT, with DRAWING HISTORY as a subform at the bottom of that form. DRAWING HISTORY shows all the revisions of that particular drawing number as a datasheet.

    (*I gave the "LEGACY CONVERSION" dwg four revs, so it's our test).

    How can I have DRAFTER_INPUT up, and scroll back and forth through just the revisions of that drawing number so that the parent form updates? To select a record in the subform datasheet and then requery DRAFTER_INPUT form?


    I am normalizing and trying to clean it up this week. There are currently 14k records in the DFTRP (main) table. It's a hand me down for sure.
    Suggestions on restructuring the whole thing welcome.

  4. #4
    Toyman is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    233
    Something like this?
    Last edited by Toyman; 11-16-2011 at 09:24 AM.

  5. #5
    srcacuser is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2011
    Location
    Northern Virginia
    Posts
    15
    A split form is doable.

    I'm still trying to get just those isolated revs to show up in the split form, and not all the records (24).

    Perhaps a filter on-load? I see REMOVE FILTER on-load now.

  6. #6
    Toyman is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    233
    Quote Originally Posted by srcacuser View Post
    A split form is doable.

    I'm still trying to get just those isolated revs to show up in the split form, and not all the records (24).

    Perhaps a filter on-load? I see REMOVE FILTER on-load now.
    I am not really understanding what records are suppose to be display. Perhaps tell me the list that is suppose to be display, and I can get the common deminator and work out a filter

  7. #7
    srcacuser is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2011
    Location
    Northern Virginia
    Posts
    15

    Smile

    The idea was to locate a specific record/revision on the SEARCH_DATABASE1 form, then open that record up in DRAFTER_INPUT to
    see all the data in that form for that record. A subform needs to exist at the bottom that shows (for convenience) all the records/revisions that exist for that particular drawing number, versus all the records in the database in continous form. The user needs to be restricted to seeing only the revisions for that drawing, ie toggling back and forth between available records/revisions. X0 thu X4, or whatever.

    That help a bit?

    Thanks again for your help

  8. #8
    Toyman is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    233
    Quote Originally Posted by srcacuser View Post
    The idea was to locate a specific record/revision on the SEARCH_DATABASE1 form, then open that record up in DRAFTER_INPUT to
    see all the data in that form for that record. A subform needs to exist at the bottom that shows (for convenience) all the records/revisions that exist for that particular drawing number, versus all the records in the database in continous form. The user needs to be restricted to seeing only the revisions for that drawing, ie toggling back and forth between available records/revisions. X0 thu X4, or whatever.

    That help a bit?

    Thanks again for your help
    Ok, try this:
    However, I think your set up may be wrong. You should have a main table for projects. In this table, you should have a primary field ProjectID, auto number, to identify your project. You should then have a second table to record all the record/revision for that project. The second table should have a primary key RevisionID and a foreign key to record the primary key from the main table. Therefore, you will have one main project will multiple revision entries.

  9. #9
    srcacuser is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2011
    Location
    Northern Virginia
    Posts
    15
    So for now there is no way to accomplish this?

  10. #10
    Toyman is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    233
    Quote Originally Posted by srcacuser View Post
    So for now there is no way to accomplish this?
    Its done in the sample db I attached. However, I would change the structure. It may cause problems in the future

  11. #11
    srcacuser is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2011
    Location
    Northern Virginia
    Posts
    15
    I replied not seeing the attached. That's exactly it. Thanks very much
    Toyman.

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

Similar Threads

  1. Pop-up from Datasheet form
    By Tablerone in forum Forms
    Replies: 4
    Last Post: 10-02-2011, 03:36 PM
  2. Datasheet form problems...
    By RemonKoybito in forum Forms
    Replies: 2
    Last Post: 06-29-2011, 12:15 PM
  3. How to sync records in datasheet form?
    By degras in forum Forms
    Replies: 5
    Last Post: 02-17-2011, 09:43 AM
  4. validation with a datasheet form
    By Grooz13 in forum Forms
    Replies: 1
    Last Post: 01-12-2011, 10:42 AM
  5. Form - Datasheet View
    By kalove in forum Forms
    Replies: 0
    Last Post: 06-20-2007, 11:29 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