Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 31st, 2003, 02:04 AM
LeeSalter LeeSalter is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Nottingham, England
Posts: 3 LeeSalter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry Virtual Tables

Hello everybody.

This is my first post and I am not too familiar with ASP (but can gt along as I know a bit of VB/VB .NET).

I have an asp page that contains a table. The table is populated from data in an Access database table that matches certain criteria (contained in the querystring when the page is called).

I need to be able to sort the results. I can't do this using DHTML as one of the table columns must contain hyperlinks (I don't think you can sort a table if it contains tags other than <tr> <td> <thead> and <tbody>, though I may be wrong about this).

The second column in the HTML table gets it's values from other asp code that gets the last modification date and time of the document that is hyperlinked in column1. This information is not, therefore, in the database so I can't sort my recordset by that field.

The solution that I have come up with is to have my asp code loop through each document that matches the criteria, and creates a new table in the database and populate that with the document path, name, and it's modification date.

A new recordset is then created, sorted by modification date, and is used to then populate the HTML table. The Access table is then dropped.

This smacks of inefficiency to me. Is there any way that this new table can be created "virtually" in memory and then disposed of afterwards.

Sorry for the long post, but I felt it necessary to fully explain what I am attempting.

Look forward to your help.

Reply With Quote
  #2  
Old November 3rd, 2003, 05:26 AM
psychophiler psychophiler is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Wales
Posts: 109 psychophiler User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 14 m 51 sec
Reputation Power: 6
I cant see why you need to create this new table and then drop it.

Can you post your code as a .txt attachment to the forum and Ill have a look.

Reply With Quote
  #3  
Old November 4th, 2003, 04:01 AM
LeeSalter LeeSalter is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Nottingham, England
Posts: 3 LeeSalter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Here's the code...it's a bit messy, I'm afraid.
Attached Files
File Type: txt searchcode.txt (2.8 KB, 341 views)

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Virtual Tables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway