473,749 Members | 2,384 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("frmSearc h").sfrmSearchR esults.Form.Rec ordset

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 1767

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

Similar topics

4
6696
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
12570
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 of small boxes or really funny writing. if i go to delete the record it gives me this message the search key was not found in any record if i log all users out and repair i can delete it but i would not want to do that each time has anyone...
1
2008
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 at the same time. In other words I need a way to go the next "available" record. Any help will be greatly appreciated, please reply here in the NG. Thanks in advance !!
3
1753
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 using ADO.Net, typed datasets, and data binding through code. Is there any way that when a user pulls out a record (and this user could only pull one record at a time) into his local dataset, that a flag can be sent back to the server for that...
3
2224
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 values. I need it to advance the form to the next group of duplicate values not just the next record.
1
20669
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 theere are no records after. I do have a command that automatically jumps to the last record after I open the form: Private Sub Form_Load() DoCmd.GoToRecord , , acLast
2
1539
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 one user if that happens so I assume the massage means another form. So fare I understands it happens after a command me.Refresh or me. Requery.
3
1958
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 only way i can think to create each segment is by hardcoding the different elements into a string. For example, to create the N1 segment i'll do this: Dim sN1 as string = "N1*IM*" & drv("importer_name") & "*" & drv("consignee_code") & "*" &...
25
20561
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, and try to move to another record and get an Access error "Record is too large". The record is only half filled, with many empty fields. If I remove the added data or delete some older data, then it saves ok and works fine again. Whenever I'm...
0
8996
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9566
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9388
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9254
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8256
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6078
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
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 we have to send another system
2
2791
muto222
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.