473,503 Members | 5,004 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange "Mystery Record" Behavior

Hello Everyone:

I'm having a very strange problem occurring with my Access 2000 database. I
call it the "mystery record."

Here's the story:

I have a query by form that returns a record set in a datasheet. The user
double clicks on a row in that datasheet and a main form (pop up) opens
bound to a table with a continuous subform bound to a query.

The user can move through this recordset via a Next and Previous command
button on the main form. Everything works fine except for the "mystery
record". When you click on the Next or Previous button, it will move to the
correct record in the recordset, however the first record of the main form
table is temporarily displayed. And by temporarily I mean it flashes for a
second or so before it moves to the correct Next or Previous record.

I've tried adding DoCmd.Echo False to my Next and Previous command button
but that didn't work. Here's the code in the Next Button:

Private Sub cmdNext_Click()
Dim rst As DAO.Recordset

On Error Resume Next

Set rst = Forms("frmSearch").sfrmSearchResults.Form.Recordse t

rst.MoveNext

If rst.EOF Then
MsgBox "End of records. Close this form to search again.",
vbOKOnly, "Search"
rst.MoveLast
Exit Sub
End If

Me.FilterOn = False
Me.Filter = "StudentID=" & rst.Fields(0)
Me.FilterOn = True

Set rst = Nothing

End Sub

Any ideas on this wierd behavior? Should I put additional code in the
OnCurrent Event of the Main Form?

Thanks,

William

Nov 12 '05 #1
0 1750

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

Similar topics

4
6679
by: Tim | last post by:
I have used a graphic 'next record' button on a form. How can I stop it from going past the last existing record? In other words, I don't want it to take the user to a blank record. Thanks Tim
3
12562
by: Lee-Anne Waters via AccessMonster.com | last post by:
Hello, i have just upgraded my database from access 97 to access 2000 and updated all the jet paks. however when i use my import functions to import orders (.csv) one order will appear as a group...
1
1995
by: me | last post by:
I'm building a multi user app where many admins will be making calls to people in one table. I want to keep things simple and find a way to prevent 2 or more admins from working on the same record...
3
1732
by: vanvee | last post by:
Hi I am trying to program a VB.Net Windows application (in a client server environment with multiple users) and am seeking some help about a possible technique to handle concurreny issues. I am...
3
2201
by: domcatanzarite | last post by:
How would one create a button that on click advances the form to the next "non recurring record" as opposed to the next record. The field the button needs to que from has groups of duplicate...
1
20652
by: AA Arens | last post by:
I my form I have put record navigation buttons. When I choose just before the last record, the "Go to next record" button, access automatically start with a new record instead of a message that...
2
1523
by: Simon | last post by:
Dear reader, Same times a form pops up with the following message "Other user has updated the record" and I can save my update or store it on the clipboard for update later. I am the only...
3
1935
by: =?Utf-8?B?Sm9obiBXYWxrZXI=?= | last post by:
Hi, Below is sample output in x12 EDI format. I'm using vb.net to create this output file but i'm not sure if .NET has any tools to make the coding more organized and/or efficient. Right now the...
25
20502
by: tekctrl | last post by:
Anyone: I have a simple MSAccess DB which was created from an old ASCII flatfile. It works fine except for something that just started happening. I'll enter info in a record, save the record,...
0
7063
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
7258
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
7313
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
6970
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
7441
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
4987
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
3146
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
366
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.