One Recorsets Or Multiple Recordsets
I don't even know if there can be more than one recordsets on the same page so I'll concentrate on my problem assuming I'll need only one recordset. This time I won't need anything solved for me, just your thoughts please. Here is the deal.
I have a form with checkboxes with one picture standing beside them. Than, there is a table with 6 columns and x-rows. Every column is a different category and has a different name.
What I need is to populate the rows with data from the database but that should be sorted in the proper category (column) of the html table. There is a connection between the row value and the picture in the recordset. The first thing I thought was to make a 6 different recordsets from the same database (I don't know if that is possible), but than I was confused with the 'Do until rsXXX.EOF' part.
View Replies
ADVERTISEMENT
Is there a way of using multiple recordsets with the same connection?
My recordset at the moment inserts data into the database, and i want to have a drop down box with data already within the database, as well as the insert recordset, is there a way of doing this?
View Replies
View Related
Am having trouble opening multiple recordsets - keep getting the er:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Could not use '(unknown)'; file already in use.
/eft/postflight4.asp, line 146
Have checked the permissions and the user has full access.
Code:
View Replies
View Related
im building a site for a clinic. they want to have a calendar which displays the times for each day that are available for appointments.
at the moment i have a calendar on my page. i want to display the correct times for each day. should i use one big recordset that gets all the times/dates from the db or cycle through each day and create a recordset for each day that there are times available (some days the clinic wont be open)?
if i go with the latter option, i could potentially have 30 recordsets open. is there a fast way to execute recordsets.
View Replies
View Related
I want to pull 2 different recordsets using 2 different stored
procedures using the same Data Connection. Below is the code that I
currently have, but I'm getting an 'Object Required' error message. Am
I doing this correctly, or at least headed in the right direction? Can
someone tell me the most efficient way (provide a code example) to pull
2 different recordsets from the same Data Connection? Code:
View Replies
View Related
how to Set up a ASP page that will get a file off an FTP site and put it on the ASP site.
and alsO I have an Access database, the form scrolls though the records 18 records at a time, pauses for 15 seconds then gets the next 18.
View Replies
View Related
im building a page which has a few while loops. this means that im inevitably going to end up with about 20 recordsets on the page. will this slow the page down at all? its quite a lot of hits to the database/server. the results the recordsets will be returning wont be that big though.
View Replies
View Related
My ASP code creates an ADO recordset object on the server.
Later on the same page, I have a javascript code snippet that I use to
dynamically populate a drop-down box based on choices made in another
drop-down box. Can this javascript (or a server-side equivalent)
View Replies
View Related
How do I create a recordset from another?
e.g.
sSQL1="SELECT * FROM ThisTable"
rs1.open sSQL1,conn
sSQL2="Select * from (rs1?) WHERE name='fred' "
rs2.open sSQL2,conn
View Replies
View Related
I create a page which will show me all the Regions from the table "RegionTable" where I have no information (empty fields) in on of the fields RegionDescription or RegionRank.
It is to make my content managing easier. I do not want to see those records which contain all the necessary info (region description and rank).
I tried the following code, but it does not work
qry = "SELECT * FROM RegionTable WHERE RegionDescription="" AND RegionRank="" "
error message is:
([Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1)
View Replies
View Related
Is there a performance advantage to parsing thru a recordset verus using an array?
I'm currently trying to populate a listbox by returning data from my database, then either parsing thru the recordset until I reach the EOF, or putting the data into an array.
View Replies
View Related
I have never sorted a recordset - using rs.Sort - i have no problem sorting it in SQL.
All the tutorials i get say that i have to use a client cursor location, so this is my code:
View Replies
View Related
Let's say you have pages 1 | 2 | 3 | 4 | 5 and you're on page 3. How do you make the code so that 3 will be without url?
View Replies
View Related
Assuming I had a recordset set up like this:
Set rs = Server.CreateObject("ADODB.Recordset")
is it enough to close out the code with
set rs=nothing
or is there a benefit to
rs.close
set rs=nothing ?
View Replies
View Related
I have an array of items and for each item I need to find sizes and and for each size I need to find colors The array of items comes from the previous page. Code:
View Replies
View Related
I have a table that is just dumping an entire database data. I would like to have the values of the columns re-sort the data. Not the column heads for the data displayed under the column head varies.
For example, one column, Components, displays 80 components types and another column, Category, displays 40 categories types. When a visitor clicks on one of the component values, it should then display only that data. I've done this before but, it has been a very long time. I remember creating a link surrounding the recordset in my table but what was written.
View Replies
View Related
I have 2 recordsets. One contains all customer info data, the other recordset contains 1 field of customer id's.
How do I create a recordset that contains all customer information (from the 1st recordset)for only the customers in the customer id recordset (2nd recordset)?
View Replies
View Related
I have two different query in my ASP page:
- the first is the list of all my users:
"SELECT DISTINCT lastname, id FROM table1"
- the second is the list of users that join a meeting:
"SELECT DISTINCT lastname, id FROM table1, table2 WHERE table2.codeMeeting = " & Request("code") & " AND table1.id = table2.id"
I want to show all the users in a table (with a FOR loop), with a checkbox that is checked if the users join the meeting (= if users is in the 2° recordset)
How can I do?
View Replies
View Related
I need the IF statement to check 2 recordsets.
If the first recordset has data within then write this to the asp page, If not and the second recordset has data in, then write this to the asp page, then finally if neither of the recordests contain data and are NULL to write 'No Records'
View Replies
View Related
I realize that sometimes you can use recordsets that were never opened (like when you're adding a record to a db) and I realize that you cannot close a recordset such as this.
But for the ones that ARE open, should they be closed first and then set to nothing?
Also,I'm trying to create code that checks if a recordset is open. If so, I wnat to close it. How would I do that?
View Replies
View Related
Is it possible to INNER JOIN two recordsets in ASP?I don't mean the normal JOIN you would use with two tables, but actually join the recordsets in ASP?
View Replies
View Related
Is it possible to move to all the open RS and connections? I open different recordsets on my page and in the end I need to close them and close connection. Problem is I need a function to do that to have it on every page.
Is it possible to travel through all open recordsets like it is possible to travel through all the querystrings and form data?
View Replies
View Related
What is the best way to produce these? Is there a SQL statement thatselects, say, records 30-40 from the results?
View Replies
View Related
I have a record that either says "UP" or "DOWN" . I'd like to associate the "UP" record with an image and a static webpage. I'd like to associate the "DOWN" record with a different image and different link to a static webpage.
View Replies
View Related
I have in the back of my mind and knowing the importance of using close(rsname) to close a recordset once it has been finished with, is whether any recordsets have been left open accidentally.
Is there, therefore, a way of listing all open recordsets, without specifiying the name of the recordset? ie. "For each key in recordset". Do recordsets get closed after a period of non-use?
View Replies
View Related
Assuming I create an object as below
<%
Dim objMainItem
Set objMainItem = New ItemContent
objMainItem.item_id = 1
objMainItem.Open()
%
and the class ItemContent creates a recordset based on the item_id passed in. Each item record contains the fields (header,label,content). I would like to reference the fields in the following format
<%= objMainItem.header %
View Replies
View Related
I'm trying to display different recordsets (which are 1 field each) as columns right next to one another. For example, Recordset1 is displayed on the left hand side of the screen. Recordset2 is displayed immediately to the right of then first recordset with the first rows or each at the same level.
Recordset3 is displayed to the right of Recordset2 and so on. There is no set limit to the number of possible recordsets (or columns to display). Imagine a spreadsheet where each column is a different recordset. How can I display that using ASP?
View Replies
View Related
Anyone know of a good thread, or tutorial on a an EFFICIENT way of paging through a recordset using asp and sqlserver.My tables are about 20,000 records each. Things needed.
1,_Previous Record Link
2.-List of the number of pages of recordsets returned (in a link format)--to where if the user wanted to click on the page 10 link, that the page would take them to the tenth page.
3. List of how many pages and records the query string returned
4.- Next Record Link .
View Replies
View Related
I have the following code with me Code:
<%
rs=Server.CreateObject("ADODB.recordset");
rs1=Server.CreateObject("ADODB.recordset");
sql="select coi_index_number,status,mkt_id_swno_0,mkt_id_swno_ 1,mkt_id_swno_2,mkt_id_swno_3,mkt_id_swno_4,mkt_id _swno_5,mkt_id_swno_6,mkt_id_swno_7,circle,name_of _msc from coi where coi_index_number='"+p2+"'";
sql1="select coi_index_number,status,mkt_id_swno_0,mkt_id_swno_ 1,mkt_id_swno_2,mkt_id_swno_3,mkt_id_swno_4,mkt_id _swno_5,mkt_id_swno_6,mkt_id_swno_7,circle,name_of _msc from coi1 where coi_index_number='"+p2+"'";
%>
Now i need to compare these two above mentioned recordsets....and want to pop up an alert box on the client side.....sayin whether they are same or no.
View Replies
View Related
I have a query to a database that returns some recordsets. What i need to do
is pick 5 random recordsets from those retreved from the query???
View Replies
View Related
I am doing recordet paging .the asp page brings search results after the fields are taken from a form & then filtered accordingly .Problem is that on first page it shows like
1 2 3 4 5 6 7
10 records
but i click 2 or goto some other next page it shows no results !
View Replies
View Related
I have some problems with my recordset in asp (ado). Due to some JOINS in my SQL statement i need to get the data with both, the tables name and the fields name.
My SQL String is this one:
SELECT * FROM tblObjekt INNER JOIN tblRegion ON tblObjekt.fk_Region=tblRegion.Id INNER JOIN tblOrt ON tblObjekt.fk_Ort=tblOrt.Id WHERE ObjektNr='6009056841' AND fk_Region='1'
But when I try this
rsData(1, 0).Fields.Item("tblObjekt.Id").Value
it just doesn't work.
View Replies
View Related
I'm sending a query in the page and if there are no recordsets returned, then i need to immediately send another query and print those results. here's my "non-working" code
[VBS]Set cn = server.CreateObject("ADODB.Connection")
cn.Open "Provider=SQLOLEDB; Data Source= SQLECM02; Initial Catalog= wwwapp; user id= ecm_user; Password = ecm_user"
Set rs = server.CreateObject("ADODB.Recordset")
rs.Open "Select url, fName, lName from users as u, role as r, security as s where u.ntID ='" & user & "' and u.roleid = r.roleid and s.securityLevelReq <= r.securitylevel and s.securityLevelReq > 0;", cn
if rs.BOF and rs.EOF Then
rs.clear
rs.Open "Select url from security where securitylevelreq = 0"
end if
[/VBS]
View Replies
View Related