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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

this don't work

Status
Not open for further replies.

exodus300

Programmer
Mar 22, 2002
262
0
0
AU
Code:
Microsoft OLE DB Provider for ODBC Drivers error '80040e10' 

[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. 

/cokeandrumisyum/menu.asp, line 59

this is line59:
Code:
59   rs2.Open "SELECT UserName, RegisteredDate FROM Users WHERE RegisteredDate = " & _
60    "(SELECT MAX(RegisteredDate) FROM Users)", conn

[Thanks in advance|Hope I helped you]
Exodus300
[pc3]
 
Rather than do an embedded query, you could Do something like: SELECT Top 1 UserName, RegisteredDate From Users ORDER BY RegisteredDate DESC

Somewhat the same, but less work (I think)
-T

[sub]01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111[/sub]
The never-completed website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top