Results 1 to 5 of 5

Thread: MS Access - Stop Access allowing Access To Other Records When In A Form ???

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Location
    Essex
    Posts
    14

    Question MS Access - Stop Access allowing Access To Other Records When In A Form ???

    Hello,

    I really Need some help on this one:

    I have created an Access (2000) Database, and I have some forms where you can select a specific Record with the Find Function.
    But once you have found that record I want the user NOT To Be Allowed to select another record in that form.
    I have disabled the Records Selectors But You can still sellect the next record etc with the below:

    Mouse Scroll Wheel
    Page Up + Page Down Buttons
    or via the Edit/Go To (Next/Previous/Last Record)

    Is there any way I can stop the above being done ???? otherwise the user could input data on the wrong record !!!

    Any Help would be Great !!!
    Steve

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

    Re: MS Access - Stop Access allowing Access To Other Records When In A Form ???

    You can also use something like the FilterBySelection method. This will filter your recordset down to
    whatever criteria. If it is just one record then thats all the uses can see. No moving, mouse wheel, pageup buttons, etc.
    Then when they are done with it they can remove the filter.
    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
    Mar 2005
    Location
    Essex
    Posts
    14

    Re: MS Access - Stop Access allowing Access To Other Records When In A Form ???

    How do I use this FilterBySelection Method with the use of VBA Code ????
    Last edited by StevenSkinner; Mar 21st, 2005 at 06:58 AM.
    Steve

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

    Re: MS Access - Stop Access allowing Access To Other Records When In A Form ???

    I believe you can run it by the "DoCmd.RunCommand acCmdFilterBySelection" command.
    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
    Mar 2005
    Location
    Essex
    Posts
    14

    Resolved Re: MS Access - Stop Access allowing Access To Other Records When In A Form[Resolved]

    Thats Great - Thanks again
    Last edited by StevenSkinner; Mar 23rd, 2005 at 06:53 AM.
    Steve

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