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

Home Posts Topics Members FAQ

opening a form with a large recordset at a specific record

Ian
I want to open a form at a particular record, but I think I'm running
into problems because the recordsource query is executing
asynchronously.

In the form's open event I use recordsetclone.findfirst to get a
bookmark and then set the form's bookmark to this value. normally that
works fine, but the form I am using has a very large number of records
and isn't being set to the correct record, even though it is found
successfully in the recordsetclone.

I think this is because the form doesn't yet have all the records and
so can't find a record with the correct bookmark (though how come the
recordsetclone appears to be complete??).

If I use recordsetclone.movelast before setting the form's bookmark
then the form gets set to the correct record. I have to confess I'm
starting to get confused between recordsets , recordsetclones and the
information the form has - I thought they were all (more or less) the
same thing, but this doesn't seem to be the case.

Am I right in thinking that I have to force the form's underlying
query to finish by using recordsetclone.movelast, before trying to set
the form to a specific record?

Thanks
ian
Nov 13 '05 #1
1 3262
Ian, are you aware of the bookmark bug? See:
http://members.iinet.net.au/~allenbrowne/bug-04.html

What version of Access?
If A97, make certain you have SR-2 applied. Are there any dlls that are
duplicated on your system where they could be called (e.g. in Windows,
Windows\System32, Program Files\Microsoft Office\Office..., or any other
folder on path)? This scenario was sometimes seen with Access 97, and is a
known cause of the bookmark bug not being patched successfully.

If A2000 or later, see:
http://support.microsoft.com/?id=238134
Again the service packs are crucial. You need to download the latest service
pack for your version of Office, and also the latest service pack for JET 4.
Both are available from the Downloads section at:
http://support.microsoft.com

If the problem still persists, we are *very* interested in taking it
further. Please provide version information for:
- msaccess.exe
- msjet40.dll (msjet35.dll if Access 97)
- dao360.dll (dao350.dll if Access 97)
- Windows
and also the number of records in this table.

One of our clients experienced the problem under a fully and correctly
patched A97, where the form had hundreds of thousands of records loaded. He
was in a different country and the data was too sensitive to send, but we
were able to demonstrate that the problem was real by logging it. We were
unable to solve it for him, but worked around the issue by changing the
RecordSource so the form only loaded only one record at a time.

--
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.

"Ian" <ia******@yahoo.co.uk> wrote in message
news:2d**************************@posting.google.c om...
I want to open a form at a particular record, but I think I'm running
into problems because the recordsource query is executing
asynchronously.

In the form's open event I use recordsetclone.findfirst to get a
bookmark and then set the form's bookmark to this value. normally that
works fine, but the form I am using has a very large number of records
and isn't being set to the correct record, even though it is found
successfully in the recordsetclone.

I think this is because the form doesn't yet have all the records and
so can't find a record with the correct bookmark (though how come the
recordsetclone appears to be complete??).

If I use recordsetclone.movelast before setting the form's bookmark
then the form gets set to the correct record. I have to confess I'm
starting to get confused between recordsets , recordsetclones and the
information the form has - I thought they were all (more or less) the
same thing, but this doesn't seem to be the case.

Am I right in thinking that I have to force the form's underlying
query to finish by using recordsetclone.movelast, before trying to set
the form to a specific record?

Thanks
ian

Nov 13 '05 #2

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

Similar topics

8
by: Neil | last post by:
I have a very puzzling situation with a database. It's an Access 2000 mdb with a SQL 7 back end, with forms bound using ODBC linked tables. At our remote location (accessed via a T1 line) the time...
4
by: Skully Matjas | last post by:
I am using the following code (created by the wizard) to allow to bring my form to a particular entery. But when I edit the entery (ex: put new information into a blank cell), it puts that record...
9
by: BLUE WATER | last post by:
Help, When I am finished entering in data into my form A, I press the save button that saves this new data to a new record. However I would like my other form to open at a specific record, the...
14
by: Abhi | last post by:
FYI: This message is for the benefit of MS Access Community. I found that this prblem has been encounterd by many but there is hardly any place where a complete solution is posted. So I thought...
8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
8
by: Tom | last post by:
Hi I have an aspx page which has javascript to configure xmldata. I added breakpoint to the button method. When I click submit button, it did not go to those breakpoint and show the following...
7
by: MLH | last post by:
Here's a blurb cut from A97 HELP on BOF/EOF: When you open a Recordset object that contains at least one record, the first record is the current record and the BOF and EOF properties are False;...
17
by: radio1 | last post by:
Configuration: Access 2002 and SQL Server 2000 using a .ADP Project. I would VERY MUCH appreciate anyone's input into this problem I'm having. I have a form in Access that does not permit...
3
by: MLH | last post by:
I've pretty much always applied a filter to a form to go to a specific record - filtering out all but the desired record. Am looking for code used to move to a specific record when keyfield value...
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...
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,...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.