| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#16
|
||||
|
||||
|
yes ... as long as table name is worksheet name, and you have column headings. it's as if it's a regular database.
__________________
Come JOIN the party!!! Quote of the Month: Stupidity: Quitters never win, winners never quit, but those who never win AND never quit are idiots. Questions to Ponder: If man evolved from monkeys and apes, why do we still have monkeys and apes? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
|
#17
|
|||
|
|||
|
Great. Thanks for the help
-Steve |
|
#18
|
|||
|
|||
|
Anybody know if you can sort by multiple criteria?
Here is code from a project I'm working on for a employee list by department. Code:
strSQL = "SELECT * from photorange ORDER BY [Department]" I would like to order first by department, then by last name similar to what Excel will do with a data sort with multiple criteria. How would I do this? -Ben |
|
#19
|
||||
|
||||
|
just add the additional sort options at the end
Code:
strSQL = "SELECT * from photorange ORDER BY [Department], [LastName]" |
|
#20
|
|||
|
|||
|
That was easy. Thanks!
-Ben |
|
#21
|
|||
|
|||
|
Small tip for people reading over this this line of code
Code:
strSQL = "SELECT * FROM A2:Q10000" Is where you can change the tables cords depending on how many rows you have in your excel spreadsheet allowing you to have more rows or collumns. A2:Q10000 |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Classic ASP: read Excel file into Recordset |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|