473,608 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2598
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("yourform name").recalc perhaps ?

--
Dutchy
Ian Bailey <im******@hotma il.com> schreef in berichtnieuws
2c************* *************@p osting.google.c om...
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******@hotmai l.com (Ian Bailey) wrote in message news:<2c******* *************** ****@posting.go ogle.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
1808
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 recent problem was a new form that I was working on and I had placed a navigation combo box on the form, and I was about to write a BeforeUpdate event that would use Trevor Best's tCount() (replacement for the builtin dCount()) to see if there were...
7
8273
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 my MDBs, but in my ADO it works fine if there are 100 records or less, but always shows "100" for recordsets larger than 100.
2
1859
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. One subform (course occurrence) has got 4 subforms of its own, another subform (course web description) has got 1. The main form has got navigation buttons, occurrence subform has got navigation buttons (there can be several occurrences of the...
13
2690
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 = Forms("frmMaster").RecordsetClone 'set an instance of form master recordset clone
9
3046
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 the form. After the requery the records are in different order to the order that they may be entered in. The record does not seem to be assigned an ID (autonumber ID field) until after it is requeried. My problem is that after requerying the...
42
11509
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
3001
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 favor of more profit, was the reasoning. Oh well. Anyhow. I built this companies network from the ground up. Then about 8 years ago, I developed a MS Access 2.0 database. This database, much like others, was supposed to just tiny bits. Over...
3
2098
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". FrmQuestion shows the details about Question and by clicking on one for the cmd button on this form opens up SfrmQuestions that lets me add new questions. The frmQuestion Form remains opened at the backend. My problem is when I save the question in...
6
1726
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 absolutely no idea what's going on. These are the problematic codes, thank you very much for your kind suggestion and help. Paul From Bratislava, Slovakia -------------------------------------------
0
8057
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
8470
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...
1
8142
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5475
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
3959
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4022
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2472
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
1
1580
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1327
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.