473,471 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

navigation buttons sometimes require two clicks to move

Hi

Using A2003

My db has main form [frmStakeholders] with stakeholderID & other main
details.
When there are a number of detail subform records it often requires
two clicks of the next/previous nav buttons to move to the next/
previous record. (regardless of whether or not the subfrm is dirty).

The subform [frmSHDetails] has a text box "DateChanged" which updates
on the AfterUpdate of [frmSHDetails]: (this control blinks when a nav
button is clicked).

Private Sub Form_AfterUpdate()
If Format(Me.DateChanged, "dd/mm/yyyy") <Format(Now(), "dd/Mm/
yyyy") Then
Call Changed
End If
End Sub

Private Sub Changed()
Me.fUserID = [Forms]![frmLogIn]![fUserID]
Me.DateChanged = Now()
End Sub

Any help to fix this annoying behaviour is sincerely appreciated.

Peta
Jan 14 '08 #1
4 1738
Move the code into Form_BeforeUpdate.

If you use Form_AfterUpdate, you dirty the form again as soon as the record
is saved. So it has to save again, which again dirties it straight away. So
it has to save again, which ...

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<pg**@westnet.com.auwrote in message
news:cb**********************************@p69g2000 hsa.googlegroups.com...
Hi

Using A2003

My db has main form [frmStakeholders] with stakeholderID & other main
details.
When there are a number of detail subform records it often requires
two clicks of the next/previous nav buttons to move to the next/
previous record. (regardless of whether or not the subfrm is dirty).

The subform [frmSHDetails] has a text box "DateChanged" which updates
on the AfterUpdate of [frmSHDetails]: (this control blinks when a nav
button is clicked).

Private Sub Form_AfterUpdate()
If Format(Me.DateChanged, "dd/mm/yyyy") <Format(Now(), "dd/Mm/
yyyy") Then
Call Changed
End If
End Sub

Private Sub Changed()
Me.fUserID = [Forms]![frmLogIn]![fUserID]
Me.DateChanged = Now()
End Sub

Any help to fix this annoying behaviour is sincerely appreciated.

Peta
Jan 15 '08 #2
On Jan 15, 11:21*pm, "Allen Browne" <AllenBro...@SeeSig.Invalid>
wrote:
Move the code into Form_BeforeUpdate.

If you use Form_AfterUpdate, you dirty the form again as soon as the record
is saved. So it has to save again, which again dirties it straight away. So
it has to save again, which ...

--
Allen Browne - Microsoft MVP. *Perth, Western Australia
Tips for Access users -http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<p...@westnet.com.auwrote in message

news:cb**********************************@p69g2000 hsa.googlegroups.com...
Hi
Using A2003
My db has main form [frmStakeholders] with stakeholderID & other main
details.
When there are a number of detail subform records it often requires
two clicks of the next/previous nav buttons to move to the next/
previous record. (regardless of whether or not the subfrm is dirty).
The subform [frmSHDetails] has a text box "DateChanged" which updates
on the AfterUpdate of [frmSHDetails]: (this control blinks when a nav
button is clicked).
Private Sub Form_AfterUpdate()
* *If Format(Me.DateChanged, "dd/mm/yyyy") <Format(Now(), "dd/Mm/
yyyy") Then
* * * *Call Changed
* *End If
End Sub
Private Sub Changed()
* *Me.fUserID = [Forms]![frmLogIn]![fUserID]
* *Me.DateChanged = Now()
End Sub
Any help to fix this annoying behaviour is sincerely appreciated.
Peta- Hide quoted text -

- Show quoted text -
of course!

Cheers Allen
Jan 15 '08 #3
On Jan 15, 4:59 pm, p...@westnet.com.au wrote:
On Jan 15, 11:21 pm, "Allen Browne" <AllenBro...@SeeSig.Invalid>
wrote:
Move the code into Form_BeforeUpdate.
If you use Form_AfterUpdate, you dirty the form again as soon as the record
is saved. So it has to save again, which again dirties it straight away. So
it has to save again, which ...
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
<p...@westnet.com.auwrote in message
news:cb**********************************@p69g2000 hsa.googlegroups.com...
Hi
Using A2003
My db has main form [frmStakeholders] with stakeholderID & other main
details.
When there are a number of detail subform records it often requires
two clicks of the next/previous nav buttons to move to the next/
previous record. (regardless of whether or not the subfrm is dirty).
The subform [frmSHDetails] has a text box "DateChanged" which updates
on the AfterUpdate of [frmSHDetails]: (this control blinks when a nav
button is clicked).
Private Sub Form_AfterUpdate()
If Format(Me.DateChanged, "dd/mm/yyyy") <Format(Now(), "dd/Mm/
yyyy") Then
Call Changed
End If
End Sub
Private Sub Changed()
Me.fUserID = [Forms]![frmLogIn]![fUserID]
Me.DateChanged = Now()
End Sub
Any help to fix this annoying behaviour is sincerely appreciated.
Peta- Hide quoted text -
- Show quoted text -

of course!

Cheers Allen
Hi Allen: I have the same problem with having to double click the
navigation bar twice to recalculate and move between records. I
removed all the events and still the same annoying behavior. If I add
a commandbutton to move between records it works fine. Any suggestions
are greatly appreciated. Alan
Feb 2 '08 #4
On Feb 2, 12:03 pm, Alan <a...@comcast.netwrote:
On Jan 15, 4:59 pm, p...@westnet.com.au wrote:
On Jan 15, 11:21 pm, "Allen Browne" <AllenBro...@SeeSig.Invalid>
wrote:
Move the code into Form_BeforeUpdate.
If you use Form_AfterUpdate, you dirty the form again as soon as the record
is saved. So it has to save again, which again dirties it straight away. So
it has to save again, which ...
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
<p...@westnet.com.auwrote in message
>news:cb**********************************@p69g200 0hsa.googlegroups.com...
Hi
Using A2003
My db has main form [frmStakeholders] with stakeholderID & other main
details.
When there are a number of detail subform records it often requires
two clicks of the next/previous nav buttons to move to the next/
previous record. (regardless of whether or not the subfrm is dirty).
The subform [frmSHDetails] has a text box "DateChanged" which updates
on the AfterUpdate of [frmSHDetails]: (this control blinks when a nav
button is clicked).
Private Sub Form_AfterUpdate()
If Format(Me.DateChanged, "dd/mm/yyyy") <Format(Now(), "dd/Mm/
yyyy") Then
Call Changed
End If
End Sub
Private Sub Changed()
Me.fUserID = [Forms]![frmLogIn]![fUserID]
Me.DateChanged = Now()
End Sub
Any help to fix this annoying behaviour is sincerely appreciated.
Peta- Hide quoted text -
- Show quoted text -
of course!
Cheers Allen

Hi Allen: I have the same problem with having to double click the
navigation bar twice to recalculate and move between records. I
removed all the events and still the same annoying behavior. If I add
a commandbutton to move between records it works fine. Any suggestions
are greatly appreciated. Alan
After deleting one control at a time I found the culprit. A bound
control. Thanks anyway
Feb 2 '08 #5

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

Similar topics

5
by: Mike MacSween | last post by:
A single form (i.e. no subforms) opening full screen, how can I get the navigation buttons (Access built in) to be higher than the bottom of the screen. It annoys the users - they go for the nav...
3
by: fred14214 | last post by:
Dear Group: I have built and customized a form using the wizard to put command buttons that will move to the NEXT record or PREVIOUS record. This works, but it needs some refinement. ...
2
by: PC Datasheet | last post by:
I have an AccessXP(A2000 mode) customer who says on one form the navigation buttons do nothing when he clicks on any of the 5 but the navigation buttons work on other forms. In my copy of the...
2
by: longtim | last post by:
I have been trying to implement navigation buttons for a number of forms in my application. Creating the 'Next' 'Previous' buttons has been fine but setting the enabled properties doesn't work...
5
by: mayur_hirpara | last post by:
Hi, I have been developing web applications for a while now. However, as I was thinking through the architecture I really don't understand the "How server can identify between which buttons has...
6
by: John | last post by:
Hi I need to block user from moving away from a record using any of First/Last/Prev/Next/New Record or any other way IF the record has not been saved, and displaying a message to the effect...
1
by: D Lutheran | last post by:
I need to write some code in some navigation buttons to have the button move up and down list box items. I think I need to start with having the button change an index the buttons are...
4
by: Jamey Shuemaker | last post by:
Howdy, Saw a couple threads from the past few years on this topic, but didn't really find any solutions. Here's one I found:...
1
lwwhite
by: lwwhite | last post by:
Another question. On one of my forms, I have two radio buttons: Topic and Window. Beside each of them is a drop-down to select the corresponding topic or window. When Topic is selected the window...
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.