D
Daiv
I have the following code, and It WAS working until I rnamed a variable. now
when I run it i get the following error:
"Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1."
Here is the code. Any Ideas?
'Dimension variables
Dim adoCon 'Holds the Database Connection Object
Dim rsUsers 'Holds the recordset for the records in the database
Dim rsUserInfo 'Holds the recordset for the records in the database
Dim strSQL 'Holds the SQL query to query the database
'Create an ADO connection object
Set adoCon = Server.CreateObject("ADODB.Connection")
'Set an active connection to the Connection object using DSN connection
adoCon.Open "DSN=rbs"
'Create an ADO recordset object
Set rsUsers = Server.CreateObject("ADODB.Recordset")
'Initialise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT FTPUsers.UserName, FTPUsers.Quota, FTPUsers.Password FROM
FTPUsers;"
'Open the recordset with the SQL query
rsUsers.Open strSQL, adoCon <----- this is the line it bums out on.
Thanks!
when I run it i get the following error:
"Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1."
Here is the code. Any Ideas?
'Dimension variables
Dim adoCon 'Holds the Database Connection Object
Dim rsUsers 'Holds the recordset for the records in the database
Dim rsUserInfo 'Holds the recordset for the records in the database
Dim strSQL 'Holds the SQL query to query the database
'Create an ADO connection object
Set adoCon = Server.CreateObject("ADODB.Connection")
'Set an active connection to the Connection object using DSN connection
adoCon.Open "DSN=rbs"
'Create an ADO recordset object
Set rsUsers = Server.CreateObject("ADODB.Recordset")
'Initialise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT FTPUsers.UserName, FTPUsers.Quota, FTPUsers.Password FROM
FTPUsers;"
'Open the recordset with the SQL query
rsUsers.Open strSQL, adoCon <----- this is the line it bums out on.
Thanks!