Hi to all,
I have a subform [Child_0] which changes its Sourceobject, using the
following expression:
Forms![Estados Condomino]![Child_0].SourceObject = "Subform Deposito
Mant"
and the focus to the desired control, a textbox calles "TxtMonto"
Forms![Estados Condomino]![Child_0].SetFocus
Forms![Estados Condomino]![Child_0]!TxtMonto.SetFo cus
So far so good, no errors, (for once) If I check with the
ActiveControl Property in the immediate window, it displays the
correct Textbox. The only thing is that the focus doesn´t to its
"blinking" on my form. It shows no focus on no control, not on the
parent and not on the Subform. If I then click on no matter where in
the form or the subform, (not on the textbox itself!) the cursor
inmediately shows up, but i do not want to have to do that...
Hope I made it clear and look forward to an answer... 1 1487
Not to answer your question, but: if it really is the subform (not the main
form) that is executing that code, the code should refer to the subform as
Me - not as Forms![Estados Condomino]![Child_0]. Thus:
me![txtMonto].setfocus
^^
This avoids the subform having to know the name of the calling form, and of
the calling form's subform control.
HTH,
TC
"Joost" <am**********@y ahoo.com> wrote in message
news:3b******** *************** **@posting.goog le.com... Hi to all,
I have a subform [Child_0] which changes its Sourceobject, using the following expression:
Forms![Estados Condomino]![Child_0].SourceObject = "Subform Deposito Mant"
and the focus to the desired control, a textbox calles "TxtMonto"
Forms![Estados Condomino]![Child_0].SetFocus Forms![Estados Condomino]![Child_0]!TxtMonto.SetFo cus
So far so good, no errors, (for once) If I check with the ActiveControl Property in the immediate window, it displays the correct Textbox. The only thing is that the focus doesn´t to its "blinking" on my form. It shows no focus on no control, not on the parent and not on the Subform. If I then click on no matter where in the form or the subform, (not on the textbox itself!) the cursor inmediately shows up, but i do not want to have to do that...
Hope I made it clear and look forward to an answer... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Charles Eubanks |
last post by:
The enclosed html snippet displays an area map. The behavior I want
is for each area to show up (eg show the outline of the poly) when the
user mouses over it. This happens nicely BUT in order for this to
occur, the user must hit the tab key to set the focus into the image
(or the map -- I am not sure which at this point).
In any case, I need a way to automatically force the browser focus
into the image (or map) -- because end-users do...
|
by: planb |
last post by:
Hi,
I'd like to have a rollover like effect when a input field has the
focus, any idea of how to do this with just CSS (easy enough with
javascript)?
What I'm thinking of is having a tips box show up next to the input
field, but only when the field actually has focus.
I was thinking if there's any way to make the focus apply to a
|
by: LabGeek |
last post by:
I have an Access application that I have created that collects data
from a scanner and from a weighting scale. The data from the scanner
are unique identifiers (barcodes) and the scanner is connected as a
keyboard wedge. The data from the scale are weights and are
collected
by com port using MScomm32.ocx.
A user will scan a barcode into a text box (linked to a table field)
and then weight a sample. The weight will be collected from...
|
by: Johnny Jörgensen |
last post by:
I've a form that opens a tool window. The problem is that when the tool
window is opened, the main form itself passes focus to the toolwindow.
What I want and need is a toolwindow that works like a control with
tabstop=false, i.e. it doesn't get focus when the window is opened, but
focus is retained at the main form. And when you click a button on the
toolwindow, it processes the click event and returns focus to the main form.
Is that...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |