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

New Record command Trouble

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. I didn't realize that when scrolling with the moouse it loses focus so the cursor remains in the subform. How can I regain control?
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 2 '08 #1
2 1396
ChipR
1,287 Expert 1GB
How are you triggering the On Lost Focus event? What if you change the event to create the new record from On Lost Focus to On Dbl Click?
Dec 2 '08 #2
Dbar10
17
thank you, that did it.
Dec 5 '08 #3

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

Similar topics

4
by: Jim in Arizona | last post by:
I'm wanting to do a simple controlled voting page. I too our webserver off anonymous and everyone who accesses the website is a domain authenticated user. I've already done some control structure...
2
by: Charles Robinson III | last post by:
Hi Everyone, I have been working on various things within this same database for the past 5-months, and has given me nothing but trouble in the development, because the people I am designing...
7
by: Mike | last post by:
I am having trouble with the new record property. When I attempt to place the code under a command button that says the following: ''''CODE STARTS HERE'''' Private Sub Cause_Entry_Click() ...
3
by: Eagle | last post by:
Hi all, I've constructed a database that handles data concerning the "flow" of tooling in a factory. The problem is in receiving back the concerned tools and storing this data in a table tbl_In....
3
by: Nhmiller | last post by:
I searched here for an answer. I am entering records into a database, and it would save a lot of time if I could duplicate a record that is very similar to the new one I am about to enter, then...
2
by: Mark Reed | last post by:
Hi All, I have created a multi-user application at work which is working perfectly apart from a small problem which I believe to more a of a user issue (maybe some will set me straight on that...
19
by: Genalube | last post by:
I have an application that will produce a Word document based on five separate queries this has required that I create a ADODB connection: 'Create connection to current database Dim Conn As...
7
by: Neil | last post by:
Was working in A2003 and noticed that the Save Record item on the Records menu was not available when the record was not dirty. In A2000, Save Record was always available. (This is a problem for me...
1
by: cvillav | last post by:
Hello, I am new to Access and this forums, I have two tables and two forms to display the data. Tables Tbuilding Tcriteria Forms fmbuilding
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.