473,503 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

if event Frm.Current is not triggered when recordset is empty,which one should I use?

41 New Member
I'm not sure, but I think that the form.current event does not occour if the recordset is changed and coincidently it does not contain any data.
Is there any event that occour everytime the recordset is changed in a form even if the new recordset is empty?

Best regards
Ricardo
Jan 2 '16 #1
2 1275
zmbd
5,501 Recognized Expert Moderator Expert
Just to clarify what you are asking, when you say, the recordset is changed on a form, do you mean:

form.RecordSource = "Query1"
>>>changes to >>> form.RecordSource = "Query_02"

The normal order of events for a form and subforms is:
Open>Load>Resize>Activate>((GotFocus))>Current
(the gotfocus event depends on if there are controls on the form or not)
Here's a link to the general order of events:
Microsoft>Office>Order of events for database objects

If you will provide an example of your script (properly formatted with the [CODE/] tool :) ) along with a clear explanation of what you want along with what it's not doing we might be able to provide you with a clearer answer.
Jan 2 '16 #2
NeoPa
32,557 Recognized Expert Moderator MVP
Ricardo de Milano:
I'm not sure, but I think that the form.current event does not occour if the recordset is changed and coincidently it does not contain any data.
Please determine the answer to that part yourself. This should be done before posting the question. This is basic.
Ricardo de Milano:
Is there any event that occour everytime the recordset is changed in a form even if the new recordset is empty?
IE. Which event can be used to gain control when .Recordset is changed for a Form object, regardless of whether or not any records are returned?
Jan 3 '16 #3

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

Similar topics

4
7595
by: Thomas | last post by:
Hi there, I have an iframe which is editable (designMode = "on") and want to resize it dynamically as the content grows (e.g. more lines of text is in there) and there the struggle starts. I...
0
1517
by: Jim H | last post by:
I'm trying to use an owner draw ListBox by subscribing to the DrawItem event to draw my custom control as an item in the ListBox. This event is triggered when I drag the scroll button but NOT when...
7
2088
by: Jay Douglas | last post by:
Hello all, I have a asp.net page that creates a pdf on the fly and sends the pdf down to the browser. When calling the page up in IE the Page_Load event is fried twice. This doesn't happen with...
1
1538
by: tomcarr1 | last post by:
What event is triggered in ASP.Net when you close the browser ? What event is normally used to trigger clean up stuff when going from one form to another or leaving the project?
6
5092
by: Robert Dufour | last post by:
On my form if the user clicks the upper right hand corner to close the form I want to trap that event and do a check to see if closing is allowed, if not, I want to stop the form closing action. ...
3
5641
by: jay.meerdink | last post by:
Greetings! I have a simple Windows form for editing. Search results are bound to a bindingsource and shown in a datagrid paired with a datanavigator. The current row's data is displayed in text...
1
1261
by: freeskier | last post by:
What event is triggered when a combobox is assigned a value? For example, what event is triggered for the combobox in this code: Dim intMenu As Integer intMenu = 2 ...
0
1179
by: Nathan Sokalski | last post by:
I have a page with an UpdatePanel that contains several TextBoxes and Buttons. There is also a ListBox outside of the UpdatePanel that is used as a trigger to populate these TextBoxes. The Buttons...
5
2198
by: NewWebDev | last post by:
Hi! I have an HTML page embedded into a windows 32 app (being displayed via a Web Browser control). I want to be able to drag from a Win32 object and drop into the web browser. I press the...
7
5559
by: Mr Key | last post by:
Hi all!! I found my in position to ask for your assistance! I have a form(frmTable2, in DatasheetView) set to Append NewRecords to other tables and Update the Oldrecords as might be required. On...
0
7205
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
7287
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
7348
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...
1
7006
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
7467
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...
1
5021
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...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.