473,387 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Access 97 and Recordsetclone

I have developed a routine that opens a number of forms with each form
being positioned on a particular record. I am using the
Recordsetclone to find the record and then setting the form bookmark
to the recordsetclone bookmark.

The first form is already open and so is just positioned to the
desired record. The second and subsequent forms have underlying
queries that filter using a value from one of the controls on the
first form.

My problem is that, although the recordsetclone and bookmarking is
working, the controls on the first form do not appear to be updated
until the code has finished executing. When the second and subsequent
forms open, the underlying queries use the original value from the
control and not the value from the bookmarked record. Only when the
code has finished executing do the controls on the first form reflect
the bookmarked record.

Any ideas why this should be and how to get around it?

Thx
Ian
Nov 13 '05 #1
3 2585
Ian Bailey wrote:
I have developed a routine that opens a number of forms with each form
being positioned on a particular record. I am using the
Recordsetclone to find the record and then setting the form bookmark
to the recordsetclone bookmark.

The first form is already open and so is just positioned to the
desired record. The second and subsequent forms have underlying
queries that filter using a value from one of the controls on the
first form.

My problem is that, although the recordsetclone and bookmarking is
working, the controls on the first form do not appear to be updated
until the code has finished executing. When the second and subsequent
forms open, the underlying queries use the original value from the
control and not the value from the bookmarked record. Only when the
code has finished executing do the controls on the first form reflect
the bookmarked record.

Any ideas why this should be and how to get around it?

Thx
Ian


DoEvents after setting form's bookmark perhaps?
--

\\\\\\
\\ \\ Windows is searching
\ \ For your sig.
\ \ Please Wait.
\__\

Nov 13 '05 #2
forms("yourformname").recalc perhaps ?

--
Dutchy
Ian Bailey <im******@hotmail.com> schreef in berichtnieuws
2c**************************@posting.google.com...
I have developed a routine that opens a number of forms with each form
being positioned on a particular record. I am using the
Recordsetclone to find the record and then setting the form bookmark
to the recordsetclone bookmark.

The first form is already open and so is just positioned to the
desired record. The second and subsequent forms have underlying
queries that filter using a value from one of the controls on the
first form.

My problem is that, although the recordsetclone and bookmarking is
working, the controls on the first form do not appear to be updated
until the code has finished executing. When the second and subsequent
forms open, the underlying queries use the original value from the
control and not the value from the bookmarked record. Only when the
code has finished executing do the controls on the first form reflect
the bookmarked record.

Any ideas why this should be and how to get around it?

Thx
Ian

Nov 13 '05 #3
Thx for suggestions but neither of them worked. I also tried a
requery on the form. In the end I got it working by closing the first
form, re-opening it and then positioning on the required record - this
had the effect of updating the controls immediately. I don't
understand why it doesn't work if the form is not closed first.

Ian

im******@hotmail.com (Ian Bailey) wrote in message news:<2c**************************@posting.google. com>...
I have developed a routine that opens a number of forms with each form
being positioned on a particular record. I am using the
Recordsetclone to find the record and then setting the form bookmark
to the recordsetclone bookmark.

The first form is already open and so is just positioned to the
desired record. The second and subsequent forms have underlying
queries that filter using a value from one of the controls on the
first form.

My problem is that, although the recordsetclone and bookmarking is
working, the controls on the first form do not appear to be updated
until the code has finished executing. When the second and subsequent
forms open, the underlying queries use the original value from the
control and not the value from the bookmarked record. Only when the
code has finished executing do the controls on the first form reflect
the bookmarked record.

Any ideas why this should be and how to get around it?

Thx
Ian

Nov 13 '05 #4

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

Similar topics

11
by: David W. Fenton | last post by:
I'm working in Access 2K quite a bit lately (with only my second project that is 100% A2K), and I've run into a number of odd problems that seem to be associated with running code. The most...
7
by: Lauren Quantrell | last post by:
I've been using this in my MDB projects: Dim myRecords, myString as string myRecs = me.recordsetclone.recordcount myString = "There are " & myRecs & " records in this set." It works fine in...
2
by: Galina | last post by:
Hello I have a very complex database application, which have been working fine for several years in Access 97. Now I had to convert it into Access 2000. The main form (course) has got 2 subforms....
13
by: Seth Spearman | last post by:
Hey guys, I have the following code: '****************************************************** If Not Me.NewRecord Then Dim rs As DAO.Recordset Dim strBookmark As String Set rs =...
9
by: Paradigm | last post by:
I am using an Access2K front end to a MYSQL database. If I enter a new record in a continuous form the record appears as #deleted as soon as I move to a different record in the form until I requery...
42
by: lauren quantrell | last post by:
So many postings on not to use the treeview control, but nothing recently. Is it safe to swim there yet with Access 2000-Access 2003?
31
by: Cy | last post by:
Hi all, I wanted to start a thread that might help many of us. I worked for a company for 12 years, until this past Christmas when they let me go. Getting rid of the higher dollar guys, in...
3
by: Kaur | last post by:
Hi, I would appriceate any help to correct the code error that I am getting for the onclick event of a cmd button. I have two forms. Main Form "frmQuestion" and form 2 "SfrmQuestion"....
6
by: ET | last post by:
Dear All, I have once made a mdb file using access 2000 under Windows 2000. I didn't use it for long. Today I tried but some codes just didn't work. I am using Access 2002 and Windows XP. I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...

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.