Smoke,
So are you suggesting putting both tables within a form? What would I link the 'onclick' to? And would I do a form1.submit, or is there such an animal as a page.refresh, or something equivalent??
Main Topics
Browse All TopicsI'm going to try to explain as best I can what I'm trying to do...
I've got a single page, no forms, that has two result sets. I create one resultset(rsLoans) based on a value passed in on a querystring. The second resultset(rsLoanDetails) is created from a value within the first resultset(loan_id).
I have two tables to display the information. Table 1 displays all the loan information, table 2 shows the asset information pertaining to the loan displayed in table 1. I have record selectors along the bottom, so that you can move through all the loans (the ones retrieved in rsLoans). What I'd LIKE to happen, is for the information displayed in table 2 to automagically update with the appropriate information based on the new loan_id selected in table 1.
Just to clarify a bit further, loan_id is the field that links rsLoans and rsLoanDetails. This is a one-to-many relationship (ie. for each loan, there could be many items that were attached to that loan). At present, everything works for the initial page load (because the resultset is being created on page load), but as soon as I go to the next loan (rsLoans record 2) the information displayed in Table 2 does not update it still displays the information retrieved from rsLoans record 1(rsLoanDetails was created with the loan_id from rsLoans from record 1).
Help! :) Is there a way to requery a resultset?? Is this the most effective / efficient way to do what I want to do?? Thanks all for any assistance...
Shaymus Bane
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Uh oh... sounds like you're storing the recordsets somewhere (like a session variable)... That's not necessarily a good thing as it limits scalability of your app (makes it a memory hog). Also sounds like you need 2 different selection values: one to determine the contents of the rsLoans recordset and one to determine which loan in the that recordset you're trying to view.
To answer your question: rsLoanDetails.Requery should work. Or you could close the recordset, rebuild the SQL and reopen it.
A better structural setup might be to close both recordsets when the page closes and then pass values through the querystring for ID parameters for both tables. That would allow you to rebuild the recordsets on each page load.
Hope this helps,
Brandon
Business Accounts
Answer for Membership
by: smokediverPosted on 2003-06-05 at 10:19:39ID: 8659125
ShaymusBane,
If I am following you correctly, the best bet would be to add a form and a JavaScript function that would fire onclick or onchange that will resubmit the same page passing the value of the new loan Id.
Hope this helps
Smoke