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

Form_Current() getting called automatically

553 512MB
Hi

I am finding it difficult to use Form_Current() event of a subform.

It gets called automatically. I changed the tab order so that the Sub Form with Form_Current() event came first or in the end in the order; but this doesn't resolve the problem.

Interestingly, if one of the controls on the form gets focus, the Form_Current() gets called.

Any idea how to get rid of this?

Thanks
qi
Oct 5 '07 #1
5 7254
NeoPa
32,556 Expert Mod 16PB
I suggest you read the help on these events QI (type in current then hit F1 for context-sensitive help). It seems your understanding of the whole process is off so you're getting confused (in an area which is admittedly quite complex). read up on what is triggered when and you will have a much better understanding of why things happen.
Oct 6 '07 #2
nico5038
3,080 Expert 2GB
It would be nice when you would describe the "problem", as the OnCurrent event is always executed (both for the main-form and for the sub-form), thus only usefull for "single record bound" processing.

Nic;o)
Oct 6 '07 #3
questionit
553 512MB
Ok Thanks... i wasn't expecting Form_Current to behave in this manner. More study of this event has cleared up the confusion now.

qi

It would be nice when you would describe the "problem", as the OnCurrent event is always executed (both for the main-form and for the sub-form), thus only usefull for "single record bound" processing.

Nic;o)
Oct 8 '07 #4
NeoPa
32,556 Expert Mod 16PB
That sounds like a good answer Qi.
Glad you understand things better now (much better than simply getting past an individual problem :))
Oct 8 '07 #5
ADezii
8,834 Expert 8TB
Hi

I am finding it difficult to use Form_Current() event of a subform.

It gets called automatically. I changed the tab order so that the Sub Form with Form_Current() event came first or in the end in the order; but this doesn't resolve the problem.

Interestingly, if one of the controls on the form gets focus, the Form_Current() gets called.

Any idea how to get rid of this?

Thanks
qi
The Current() Event of a Form does not fire when Controls on the Form receive the Focus. This would only happen when the Form is initially opened, and a Control has a Tab Index = 0 (1st Control to receive the Focus). This is the Current() Event of the Form firing, not the GotFocus() Event of the Control.
Oct 8 '07 #6

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

Similar topics

21
by: Sriek | last post by:
hi, i come from a c++ background. i ws happy to find myself on quite familiar grounds with Python. But, what surprised me was the fact that the __init__(), which is said to be the equivlent of the...
3
by: Jun | last post by:
I have following script <script> var Animal = function(name){ this.name = name; } Animal.prototype.eat = function (food) {
37
by: ajay | last post by:
How to make a web page getting refreshed after a given time interval automatically. HTML Code plz. Tx Ajay
4
by: Jim Strathmeyer | last post by:
I'm writing code with a whole lot of inheritance and am finding myself getting an object's type a lot. I do this by having a enumerated data member in the base class, and setting it in the derived...
9
by: Robert Schneider | last post by:
Hi to all, I don't understand that: I try to delete a record via JDBC. But I always get the error SQL7008 with the error code 3. It seems that this has something to do with journaling, since the...
1
by: L.H. | last post by:
I'm having an issue with my "Single Form". There is a vertical scrollbar that is used to view all fields on the form. During the Form_Current procedure, I perform some checks of values and based...
2
by: Steve Richfie1d | last post by:
In Access 97, in the Form_Current routine of a form, I call another routine that repopulates and recomputes everything. However, a SQL Select statement that I initiate from DAO that refers to a...
2
by: Bob Darlington | last post by:
When I run the following code from a continuous form's Current event: Set ctrl = Me.ActiveControl I get an error 2474 - 'The expression you entered requires the control to be in the active...
2
by: TrueColors | last post by:
I have a project with VBA and i want to re-write it with VB 2003 but i can't find the equivalent of event "Current" (Form_Current -- vba) in VB 2003. Can anyone help me please. Many thanks.
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: 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?
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
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
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
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...
0
isladogs
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...

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.