|
-
Feb 23rd, 2005, 01:46 AM
#1
Thread Starter
New Member
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.
-
Feb 23rd, 2005, 08:49 AM
#2
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.
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...
-
Feb 23rd, 2005, 10:52 AM
#3
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:
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|