Hey Country, thanks for the response. You are correct in your analysis!
A litte more background: I am getting the "Name" I am looking for, or the student I am looking for by passing the _ID via "Request.QueryString("String"), so that recordset is working fine. (I've since change the Query.String to a Session Variable so that users cant manipulate the URL.
I guess I could also pass the Course_ID, but I have roughly 6 ID that would have to be passed.
How do I "
go through each ID in the second database (table in my case
) until it matches the number you passed from the first DB"?
Im working from One Database, just different tables, using 2 recordsets. The recordsets are filled based based on the Students ID, and the Course recordset is filled with ALL the courses I have available.
Im not positive that I have any other code to supply that would help, I have the two recordsets, i just need to know how to do what you said above. "Go through each ID of the second recordset, when the ID matches, Reponse.Write the course name"
<% '
Course Recordset for Continuing Education Units (CEU) Dim rsCourses
Dim rsCourses_cmd
Dim rsCourses_numRows
Set rsCourses_cmd = Server.CreateObject ("ADODB.Command")
rsCourses_cmd.ActiveConnection = MM_HCI_STRING
rsCourses_cmd.CommandText = "SELECT CEDU_Course_ID, Course_Name, Course_Date, Department, Course_Cost FROM xxx.CEDU_COURSES WHERE Course_Date > GetDate()"
rsCourses_cmd.Prepared = true
Set rsCourses = rsCourses_cmd.Execute
rsCourses_numRows = 0
%>
Hope this helps a little, I could sure use the help. As I've said, little new to VBScript, but my confidence grows each day!