Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SELECT ALL

Status
Not open for further replies.

Work23

Technical User
Mar 8, 2005
94
US
Hello. I would like to do a SELECT ALL or SELECT * from the table in this code below. How would I actually code that?





SQLString = "SELECT" &_
" COUNT(*) AS Views," &_
" ESOLDTO" &_
" FROM" &_
" STATS" &_
" WHERE" &_
" EVENTNAME = 'LOGIN' AND" &_

" ETIMESTAMP BETWEEN '" & Request.Form("txtFromDate") & " 00:00:00' AND '" & Request.Form("txtToDate") & " 23:59:00'" &_
" GROUP BY" &_
" ESOLDTO" &_
" ORDER BY " &_
orderByText & ";
 
Do you mean: SELECT * FROM STATS ???

If not I'm afraid I don't understand the question.
 
Is that how you would code that within a SQLString within an ASP program?
 
What error do you see when you use:
SQLString = "SELECT * FROM STATS"

There is no problem with this syntax so there must be some other explanation for an error.
 
Actually, I think the ASP program has other parameters in it that are not allowing it to display the neccessary data. Im going to try to see if I can get around it. Thanks so much.
 
Post the error here so that we can suggest you in the right direction...

Thanks

-DNG
 
Sorry. I didn't make it clear in the last post. There isn't actually an error. And I have it working now. Thanks so much again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top