I got lost in your currents, but the current event happens fairly often–when you first open a form, every time you move between records, every time you requery the form, every time you update a record, every time the form gets the focus, etc. Using recordsetclone navigation in the current event may be what’s causing your weird behavior, since it’s recursive in that it should trigger the current event again.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Acc 2K Doing weird things (Acc 2K Jet4 SP5)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Acc 2K Doing weird things (Acc 2K Jet4 SP5)
- This topic has 3 replies, 2 voices, and was last updated 23 years, 5 months ago.
AuthorTopicWScharlotte
AskWoody LoungerOctober 25, 2001 at 4:27 am #361922Viewing 2 reply threadsAuthorReplies-
WSJayden
AskWoody LoungerOctober 25, 2001 at 5:21 pm #548613HI Charlotte,
Thanks for the comments. I completely agree with you. I also apologise for it being hard to follow.
I guess the 2 points that I make are
1. Notce in the table of records that I presented the CurrentFinish string is written to the table two records in a row
2. If the OnCurrent event was firing twice in a row, it would still have to run through the sections of the OnCurrent Event that write Current, Current2, Current3 to the table before it could write CurrentFinish. It doesn’t perform the parts of the OnCurrent Event that it should prior to the ‘CurrentFinish’ stage.
Cheers
Jayden
-
WSJayden
AskWoody LoungerOctober 25, 2001 at 5:38 pm #548496Hi
This one has me stumped. To cut a long story short, I am having locking issues in an Access database that two users are using at the same time. I can’t seem to find the reason that records are locking, there don’t seem to be any places where they should be being locked. Investigating this problem led me to look at what is happening during the OnCurrent and BeforeUpdate events of the data entry form.
The databases that users are using are distributed MDE files (with linked tables back to a central .mdb file).
In order to try and figure out what is happening between the both of them, at various stages during the OnCurrent and BeforeUpdate routines, I write information to table to try and track where each user is at when the locking occurs.
I’ve noticed however that Access is ‘repeating’ parts of code that are NOT part of a loop (without repeating the parts of code the preceed them. Here is some output from the table that I am writing to.
Only one user (charlotteb) is logged into the database when this is happening.
User Position TimeStamp Order CharlotteB CurrentFinish 25/10/2001 17:02:21 31209 CharlotteB CurrentFinish 25/10/2001 17:02:21 31208 CharlotteB Current3 25/10/2001 17:02:21 31207 CharlotteB Current2 25/10/2001 17:02:21 31206 CharlotteB Current 25/10/2001 17:02:21 31205 This table is showing the output from a function in reverse order (ie. the most recent event at the top).
Notice how the ‘CurrentFinish’ output follows itself twice (without the Current1, 2, 3 etc).
Next I will paste the event subroutine that is writing to the table
———————————————————————————————————-
Private Sub Form_Current()
Dim tempRecBookmark As LongDebugLog “Current” ‘Degugger for LockedRecords
If IsNull(Me![cboProviderID]) Then
bExistingRecord = False
‘Me![cboProviderID].Locked = False
Else
bExistingRecord = True
‘Me![cboProviderID].Locked = True
End IfDebugLog “Current2” ‘Degugger for LockedRecords
If IsNull(Me![cboDisallowedReason]) Then
Me![txtPSDate].Visible = False
Else
Me![txtPSDate].Visible = True
End IfDebugLog “Current3” ‘Degugger for LockedRecords
‘ this is for going back to the disallowed claim that you just entered
‘ in the beforeUpdate event of the form, assign the [claimID] to lngdisallowRecID
If lngdisallowRecID 0 Then
DebugLog “Current4” ‘De###### for LockedRecords
tempRecBookmark = lngdisallowRecID
lngdisallowRecID = 0
Me.RecordsetClone.FindFirst “[ClaimID] = ” & tempRecBookmark
Me.Bookmark = Me.RecordsetClone.Bookmark
End IfDebugLog “CurrentFinish” ‘Degugger for LockedRecords
End Sub
——————————————————————————————————-At various points in the subroutine, you will notice that the subroutine calls a function ‘DebugLog’ and passes a string variable. This function writes one line (using DAO) to the table shown above.
Note how it is theoretically impossible for the line ‘CurrentFinish’ to be written twice in a row.
I have no answers for this – and I suspect that Access is doing something that it shouldn’t be. Has anyone got any insight, or experienced something similar?
Your help or opinions are much appreciated.
Cheers
Jayden
Access 2000 SR-2
Jet4 SP5 -
WSJayden
AskWoody LoungerOctober 25, 2001 at 6:38 pm #548624Yay,
Your comments got me thinking (especially about the Recordsetclone causing the Current Event to fire)…so I then found the problem / cause of my query, thanks. It is certainly the Recordsetclone that is causing Access to run the Current Event again, then return to the place where it left off (thereby giving the double ‘CurrentFinish’). This may certainly explain some of the record locking issues.
You’ve been a great help, thanks.
PS: I would never have though that Access would ‘nest’ a Current Event within another Current Event so to speak….don’t we learn something everyday!
Cheers
Jayden
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
A Funny Thing Happened on the Way to the Forum
by
bbearren
8 hours, 20 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
3 hours, 4 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
13 hours, 2 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
11 hours, 26 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
12 hours, 9 minutes ago -
The time has come for AI-generated art
by
Catherine Barrett
20 hours, 51 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
1 hour, 53 minutes ago -
23 and you
by
Max Stul Oppenheimer
9 hours, 7 minutes ago -
April’s deluge of patches
by
Susan Bradley
13 hours, 19 minutes ago -
Windows 11 Windows Updater question
by
Tex265
19 hours, 5 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
1 day, 17 hours ago -
Registry Patches for Windows 10
by
Drcard:))
1 day, 22 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
1 day, 5 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
14 hours, 22 minutes ago -
Align objects on a OneNote page
by
CWBillow
2 days, 3 hours ago -
OneNote Send To button?
by
CWBillow
2 days, 4 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
2 days, 13 hours ago -
No Newsletters since 27 January
by
rog7
17 hours, 49 minutes ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
1 day, 13 hours ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
1 day, 12 hours ago -
Google One Storage Questions
by
LHiggins
20 hours, 25 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
1 day, 3 hours ago -
Ancient SSD thinks it’s new
by
WSila
1 day, 18 hours ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
3 days, 4 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
14 hours, 38 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
2 days, 12 hours ago -
Firefox 137
by
Charlie
3 hours, 42 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
3 days, 16 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
3 days, 16 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
3 days, 16 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.