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

Event Trigger on Save

I have a form that I am using Condiftional formatting to create a
dashboard to indicate if there are records for each weekday of the
selected week. I have inserted requery commands on AfterUpdate events
of the fields, but the nature of the lookups that I am using for the
conditonal formatting need to be requeried once the record is saved.
Is there a way to trigger a requery when the save button is clicked? I
would think that it would be useful to recalcuated formula fields at
the same time.

I am using Access 2003.

Mike

Feb 14 '06 #1
1 5391
Mike wrote:
I have a form that I am using Condiftional formatting to create a
dashboard to indicate if there are records for each weekday of the
selected week. I have inserted requery commands on AfterUpdate events
of the fields, but the nature of the lookups that I am using for the
conditonal formatting need to be requeried once the record is saved.
Is there a way to trigger a requery when the save button is clicked? I
would think that it would be useful to recalcuated formula fields at
the same time.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Use the Click event of the Save button:

Private Sub cmdSave_Click()

' save the data

' then do the requeries

End Sub

If the form is bound then use the Form's AfterUpdate event to do the
requeries.

Private Sub Form_AfterUpdate()

' run the requeries

End Sub

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQ/IjkYechKqOuFEgEQIF/QCeJqiasM0OHO2fHEo8SDYmdVPZQNwAoJSl
uVkAzu1PIcEMQ1Qwj2/eq9LS
=DbTt
-----END PGP SIGNATURE-----
Feb 14 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: sanjay patil via .NET 247 | last post by:
Hello, I have a problem with web image button control click event. I am saving a record to database on click event of this image button. When click event fires first time it executes code...
1
by: Jonah Olsson | last post by:
Hello, I'm trying to build an "add-on" to an already existing custom web user control. The old control collects some user data and saves it to a database. The new control should collect some...
5
by: Verde | last post by:
This is admittedly an apparently odd request... but please indulge me if you don't mind: Suppose I have two <asp:Button.../> on a page (Button1 and Button2). User clicks Button1 and triggers a...
7
by: hamil | last post by:
The following code will display a tif file on a form. When another form is moved over the tif image, the tif image is erased where the form was moved. A paint event occurs when this happens. My...
2
by: jesper_lofgren | last post by:
Hi, I have a main page that contians some webcontrols. On the main page i have a asp:button id="Save". The thing is that i want to trigger a save event in all webcontrols when i cklick on the...
5
by: jesper_lofgren | last post by:
Hi, I have a main page that contians some webcontrols. On the main page i have a asp:button id="Save". The thing is that i want to trigger a save event in all webcontrols when i cklick on...
4
by: JJ | last post by:
Can you force a control to carrying out its validating code without having to leave/change focus - i.e. raise its validating event ?
1
by: amber | last post by:
Hello, How can I capture data in a listbox that occurs BEFORE the selected item switches from one item to another? myListbox.validating triggers after the user has left the listbox. ...
19
by: Daniela Roman | last post by:
Hello, I try to fire an event under a button click event and maybe anybody can give a clue please. I have let's say a WEB grid with PageIndexChanged event: private void...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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
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.