473,399 Members | 3,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Hide Form Control Following DblClick Event

365 100+
Hello,

I have another problem to which i cannot figure out a resolution,
I have a listbox on a form, on double click event of a row in the listbox i want to run some code, update tables etc
then i want to run another procedure that updates the "Main" listbox to show the change made in the other, and i want to hide the original listbox, make sense?

well, i get the error "cannot hide control that has the focus", i understand the error but would like to "do it anyways", i have tried to run other things inbetween and set the focus to something else but nothing works.

any one got any ideas?

Dan
Mar 26 '09 #1
2 1595
Dan2kx
365 100+
False alarm, i found my answer in the very Next Thread

@missinglinq
i was being non-specific in my actions and used

Expand|Select|Wrap|Line Numbers
  1. Me.SetFocus
Expand|Select|Wrap|Line Numbers
  1. Me.AnyControl.SetFocus
the latter works
Mar 26 '09 #2
missinglinq
3,532 Expert 2GB
Glad we could (inadvertently) help you!

Linq ;0)>
Mar 27 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Mark | last post by:
Hi All, I am trying to use the function found on the MVP site http://www.mvps.org/access/api/api0019.htm to hide the Access window. I must be missing something as I keep getting an error message:...
2
by: chrisse_2 | last post by:
Hi, I am working with images which vary depending on what record you are looking at. The images are linked into my database using vba code. I would like the user to be able to double click on...
0
by: genc ymeri | last post by:
Hi, Is there any way how to assign the method which runs from a menu also into its associated toolbar through properties ? e.g We have a "New" menu which has a method running in its dblclick...
6
by: MJB | last post by:
I have an application that I need to hide at startup in the system tray. I found this article on how to do it:...
2
by: Robert | last post by:
I have a form (frmWorksheet) that contains project information from a Projects table. The form contains a number of fields including ClientID and Project. On the form header is two combo boxes,...
2
by: Krustov | last post by:
If you double click on a empty form box a drop down menu will appear . But if the form box has text content - then double clicking on the form box has no effect and a drop down menu doesnt appear...
3
by: Nicolas Boretos | last post by:
Hello, Beginning access user here. I am displaying the table and its existing form at the same time. I would like to double-click on a row in the table and have the form go to/display the...
10
by: sara | last post by:
Hi - Is it possible to hide the detail section of a report at run time? I have a report that prints all details, with summary lines. The user would like the report ALSO with just summary lines....
3
by: PowerLifter1450 | last post by:
Hi all, I have to Combo boxes on a form. The first one I would always like users to see. The second, however, I would like hidden if the first box has certain values selected. So, if ComboBox1 has...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.