Results 1 to 7 of 7

Thread: Find Record in Another Form (RESOLVED)

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    5

    Find Record in Another Form (RESOLVED)

    OK, I've pored through the archives here and elsewhere and I've become even more confused than when I began.

    I want to select a record in one form, click a button and have the corresponding record appear in another form. I would prefer not to filter the second form - I would like all other records to remain.

    If someone would please get me started, I'd greatly appreciate it.

    TIA
    Rich
    Last edited by TheTortoise; Feb 9th, 2005 at 12:38 PM.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Find Record in Another Form

    Welcome to the Forums TheTortoise.

    I think we may need a little more info. Are you doing this in Access VBA or VB?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    5

    Re: Find Record in Another Form

    Oops! I'm using VBA with Access 2002.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Find Record in Another Form

    What are you needing to do with the single record? Perhaps if you dont need
    it in a second form you could easily use a subform and filter the subform
    based upon the selected record in the main form?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    5

    Re: Find Record in Another Form

    I've constructed a database containing an inventory of molding tools. Those molds have historically been referred to with descriptive part names. However, my company has several molds that produce identical parts. This leads to confusion when trying to distinguish one mold from a similar one. To resolve this problem, I've assigned each mold a unique asset number.

    What I'm trying to do with this database is, from the main form (the window into the database), allow a user to search the molds by a descriptive part name. The search results pop up in a new form, listing the molds that will produce that part. I would like the user to be able to then select a mold and press a button directing the main form to that record, thereby displaying comprehensive information on that mold.

    Thanks for your help.
    Rich

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Find Record in Another Form

    Oh, I get it know. You have a main form that allows the user to search for parts.
    Then when the user selects a part you want another form to popup displaying
    a list of molds that produce that part.

    Proposed solution:
    So you need a main form that has a recordsource of the table that contains
    all the parts. Then linked to the part field, you could have a subform that lists all
    the molds that make that part. so everytime the user navigates to another
    part record the subform will change is list of required molds.

    Sound like what you want or need to do?

    If so I can build a demo database showing this principal if need be.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    5

    Re: Find Record in Another Form

    Currently, I have a main form that the user navigates to access comprehensive information for each mold. The parts that are made in each mold (in some cases, there are several different parts made in a single mold) are listed in a sub-table. I also currently provide a button that pops up a window that does the opposite - that is, it prompts the user for a part description and lists all the molds that can make a particular part.

    What I've been unable to accomplish is to allow the user to select a particular mold from that popup search results window and click a button that redirects the main form to that mold, thereby displaying comprehensive information on that mold.

    I've attached a screenshot in hopes of helping the explanation. In the search results window, if I selected mold tag 1016, I would like to provide a command button on that window that would redirect the main form to mold tag 1016.

    Once again, thank you for your time.

    Rich
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width