Open Recordset in a Recordset

hello ee,

My problem is i have an update form that shoots the records informatiion to the form and makes it editable. Everything works fine now. On my add form i have dropboxes available. How can i make those dropdown boxes available on my update form even though i have a recordset open to fill in the update form?

example
<!-- #include file="../header.asp" -->
<!-- #include file="../connect.asp" -->
Recordset.Open strSQL, Connection
strSQL = "Select Last_Name, First_Name, Location, Description, Other from Main Where ID = '" & varID & "';"
strSQL = strSQL & "Select Location from Location;"
<form>
<input type=text name="lname" size='20' maxlength='20' value='<%=Trim(Server.HTMLEncode(Recordset("Patient_LName")))%>'/>
<input type=text name="fname" size='20' maxlength='20' value='<%=Trim(Server.HTMLEncode(Recordset("Patient_LName")))%>'/>
set Recordset = Recordset.NextRecordset
<select name='location' ID="Select3">
 Do While not Recordset.EOF
  Response.Write("<option>" & Recordset("Location") & "</option>")
  Recordset.MoveNext
 Loop
</select>
<input type=text name="description" size='20' maxlength='20' value='<%=Trim(Server.HTMLEncode(Recordset("Description")))%>'/>
<input type=text name="other" size='20' maxlength='20' value='<%=Trim(Server.HTMLEncode(Recordset("Other")))%>'/>
<form>
<!-- #include file="../disconnect.asp" -->
<!-- #include file="../footer.asp" -->

Then spit out something like this

<D>
<A>
<B>
<C>
<D>
IntercareSupportAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ellandrdCommented:
simply create a new recordset object, you can re-use the connection, but create a new recordset object with a new name, and you will be able to make a second query to the database at the same time.. hope that makes sense, but if not, just ask and I'll provide assistance where I can.

- ellandrd
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IntercareSupportAuthor Commented:
makes sense & easy.. let me try it out real quick
0
IntercareSupportAuthor Commented:
ellandrd, thanks works great now. gj
0
IntercareSupportAuthor Commented:
quick & efficient
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.