Results 1 to 3 of 3

Thread: Me.Refresh / Me.Requery not sufficient [Resolved]

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    4

    Wink Me.Refresh / Me.Requery not sufficient [Resolved]

    Me.Refresh / Me.Requery not doing what i want.

    Here's the scenario: I have a main form (Form A) with a few listboxes. When I double click on one listbox another form pops up (form B) which also has a listbox. When i close Form B the value from there is sent to Form A, but I need this value to display without me having to click the dropdown arrow. I hope I'm being clear enough.
    Last edited by CodeNemesis; Feb 24th, 2005 at 04:41 AM.

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Me.Refresh / Me.Requery not sufficient

    frm1 -> frm2

    frm2_OnClose (or onUnload) you need to do something like

    frm1.controlname = listcontrolname

    No need for refresh or anything, unless its bound to a table, in which case you may need a refresh and if its access there may be an issue around sending the updated cache. The latter you'd have to look into.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

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

    Re: Me.Refresh / Me.Requery not sufficient

    Oh, so there is more to this. If its already refreshed and requered, then you can make the selection selected by going.
    VB Code:
    1. Form1.Combo6.ListIndex = Form2.Combo7.ListIndex
    .ListIndex is the index number of the combo item that is currently selected in the list
    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