Results 1 to 16 of 16

Thread: [RESOLVED Temporarily] Filtering

Threaded View

  1. #1

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

    Resolved [RESOLVED Temporarily] Filtering

    Is it possible to filter a resultset of a db query? I dont want to hit the db with two calls and my query is joined to bring the related resultset back but upon iterating it may be best to loop through the one condition and then reloop through the other. There will be no duplication of items in the loop so its not a resource drain or waste.

    For ex. if you have returned items that can be visible and invisible then it would be a waste to call the db twice just to loop through the visible ones and then another call and loop through the invisible ones. So if I have 5 visible and 5 invisible items then I only want to loop a total of 10 times; filter for visible, loop 5 times, unfilter, refilter for invisible, loop 5 more times and release resources.


    Thanks
    Last edited by RobDog888; Oct 13th, 2007 at 10:18 PM.
    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

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