473,386 Members | 1,715 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,386 software developers and data experts.

Have lost control-Please help

17
In my main form I have a [LastName] field that I can scroll with my mouse to advance to any name. I have put code in this field so that On Lost Focus the cursor moves to a new record in subform [UnitsWorkedQuery subform]. My problem is I can't click back on the LastName field and scroll because the scroll function is remaining in the subform. How can I regain control? Thanks

Part 2: I tried moving the above command to AfterUpdate but now my code will not take me to the new record, it just goes to the first record in the datasheet.
Private Sub LastName_AfterUpdate()

Me.[Units Worked Query subform].SetFocus
DoCmd.GoToRecord acActiveDataObject, , acNewRec

End Sub
Dec 1 '08 #1
3 1446
@Dbar10
Hi there,

For your first question, may be you're showing the form as Showdialog. In this case the focus will be there up to you close it. If this is the case try to show your subform with subForm.show(me)

Try this and let me know.

Rpicilli
Dec 2 '08 #2
Dbar10
17
rpcilli,
I amworking in an Access mdb. I can't find what you are talking about. Can you help me?
Dec 2 '08 #3
Hi,

Excuse me by that. This is a Forum of visual basic that's why my answer.

May be you can try another Forum. I don't know if there is a forum of Access.

In this matter I can not help you because I don't know anything about Access Forms.

Good luck

Rpicilli
Dec 3 '08 #4

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

Similar topics

0
by: marius | last post by:
Hi! I'm currently trying to move from MS SQLServer to MySQL, running on windows XP. When trying to connect to mysql on localhost with mysql control center I get the 2013-error "Lost connection...
0
by: news.microsoft.com | last post by:
I have a collection of pages and user controls in a separate project that I compile and use in a sub folder of a all my projects. This is a collection of re-usable modules that I use on every...
10
by: MLH | last post by:
Would like to examine the value entered into a textbox on an A97 form during the BeforeUpdate event. The textbox may or may not have had an earlier entry in it prior to the latest value that is...
1
by: Jéjé | last post by:
Hi, there is 1 or 2 years, I've found a webcontrol which provides the same propertygrid control (windows control) functionalities, but in an ASP.NET page. So this control allow me to edit...
2
by: Kalim Julia | last post by:
I inherite datagrid control, and I paste the derived datagrid control on tab control (4th tabpage). Why I keep lose the derived control everytime I close my form (in design environment)? Any...
1
by: Philipp | last post by:
Hi NG, Is there a way to know which control just lost focus when clicking on a button? (other than keeping an object variable which is set when a control loses focus)? Thanks in advance! ...
0
by: rowe_newsgroups | last post by:
A quick an easy question that has me stumped: I created a simple web user control that is basically a custom bound drop down list. If I add this control at design time, it's value is lost during...
1
by: =?Utf-8?B?amFtZXNAbm9zcGFtLmNvbQ==?= | last post by:
When processing the OnGotFocus event, I need to know the window/control that lost the focus. Is there a way to determint this? With MFC, you could use OnSetFocus which passed you the window that...
2
by: moosecallahan | last post by:
I've been hacked or invaded somehow. I am no longer the user adminstrator and the control panel is not on the start menu. I can't access the control panel to reset the user account. I am the only...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.