473,401 Members | 2,146 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,401 software developers and data experts.

Form's OnCurrent event not running when I go to the first record

Seth Schrock
2,965 Expert 2GB
I have a form that has a combo box in the header that I use to navigate through the records in the form. This combo box uses the DoCmd.SearchForRecord method to go to the selected record. If I select either the second or third record (there are only three records right now), the form's OnCurrent event fires like I would expect it to. However, if I select the first record (first in the table, the form's recordset, and the combo box) the form's OnCurrent event doesn't run at all. I don't get any error messages, but if I set a breakpoint on the first line of the form's OnCurrent event it never touches the event. Is this a bug, or is this normal activity?
May 21 '13 #1
4 2754
Rabbit
12,516 Expert Mod 8TB
You mean every time? Or do you mean when you first open the form and you're already on the first record?
May 21 '13 #2
Seth Schrock
2,965 Expert 2GB
Every time. I have yet to come up with a way to make the form's OnCurrent event to run when going to the first record.
May 21 '13 #3
TheSmileyCoder
2,322 Expert Mod 2GB
You've allready asked this question once before.
http://bytes.com/topic/access/answer..._current-event
In that post it got reported as a known bug.
Either way, why not use the Forms recordset .FindFirst or .Find instead?
May 21 '13 #4
Seth Schrock
2,965 Expert 2GB
Wow. I had forgotten about that. Thanks for reminding me Smiley. I will certainly use the form's recordset instead.
May 22 '13 #5

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

Similar topics

3
by: Jason A. Thompson | last post by:
Dear Access Gurus, I have a database which I hoped to use to administer questionnaires, or rather that someone who knows nothing about Access could use to administer them. Each q'aire item is on...
5
by: tdmailbox | last post by:
I have a form with a child form. In the child form there is a list of names that can grow quite large. On the parent form I want to display the first name from the child form. I set up a test...
10
by: Mike L | last post by:
This is for a Win form. Currently, the first record is shown in the combo box. I want the combo box to be blank and when the user clicks on the down arrow to choose from the list and clicks on...
2
by: hypomite | last post by:
I have an handler for the SelectedIndexChanged event of a dropdown box. I have also set the AutoPostBack option to True. When you select any item besides the first one, the event sucessfully fires....
0
by: weboweb | last post by:
Hello everybody, Is there a way I can make the datagrid component (windows forms) to NOT show the first record of data as a header? I would like the headers to be null or just say (Column1,...
1
by: ABC | last post by:
When the first web page loading, it is normal, ok no problem. When second loading web page without closed IE, it cannot raise Page_Load event, how to fix this problem?
1
by: foothills bhc | last post by:
I have a problem with verifying content of controls on a form before closing the form or moving to the next form "record" (i.e., when moving to the next row of my form's record source). HERE'S THE...
2
by: Rational Repairs | last post by:
I have run into a sudden problem and thought I'd see if anyone else has ran into this. Out of nowhere (sort-of) I am not able to access the OnCurrent event on a subform. I, of course, can write...
22
AccessIdiot
by: AccessIdiot | last post by:
Hello all, I have a form (frm_Entrainment) with a button that opens a 2nd form (frm_Specimen_Entrainment). The 2nd form shares an ID field with the first form (Entrainment_ID - its like opening...
5
by: TomK | last post by:
I would like to use the oncurrent event of a subform. The subform class seems to offer onEnter and onExit only, so I tried up to set the event handling routine programatically. It works fine with a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
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...
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
tracyyun
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...

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.