B
Brooks Clayton
I have followed Microsoft article 321503 (HOW TO: How to Use a
Database for User Names and Passwords in FrontPage 2000) to provide
user names and passwords for a "Customers Only" subweb. It works
fine. (I use FP 2000)
Now I want to pull records from a second MS Access (order status)
database in the subweb, where the User Name and Password match those
entered when logging on to the subweb. I believe that they are saved
as Session("UID") and Session("PWD").
Using the Database Results Wizard, I have made the following query:
SELECT OrderStatus.*
FROM OrderStatus
WHERE ((OrderStatus.[CustomerID] ="::Session('UID')::") AND
(OrderStatus.INetPassword ="::Session('PWD')::"))
There is a problem with this query as I get error messages in the
browser when I try to run it. (The query does verify OK in the wizard)
If I delete the WHERE clause, I see all records in the database. The
most recent error is:
Database Results Error Description: [Microsoft][ODBC Microsoft Access
Driver] Too few parameters. Expected 1.
Number: -2147217904 (0x80040E10)
Source: Microsoft OLE DB Provider for ODBC Drivers
Please tell me what I might be doing wrong.
Thanks,
Brooks
Database for User Names and Passwords in FrontPage 2000) to provide
user names and passwords for a "Customers Only" subweb. It works
fine. (I use FP 2000)
Now I want to pull records from a second MS Access (order status)
database in the subweb, where the User Name and Password match those
entered when logging on to the subweb. I believe that they are saved
as Session("UID") and Session("PWD").
Using the Database Results Wizard, I have made the following query:
SELECT OrderStatus.*
FROM OrderStatus
WHERE ((OrderStatus.[CustomerID] ="::Session('UID')::") AND
(OrderStatus.INetPassword ="::Session('PWD')::"))
There is a problem with this query as I get error messages in the
browser when I try to run it. (The query does verify OK in the wizard)
If I delete the WHERE clause, I see all records in the database. The
most recent error is:
Database Results Error Description: [Microsoft][ODBC Microsoft Access
Driver] Too few parameters. Expected 1.
Number: -2147217904 (0x80040E10)
Source: Microsoft OLE DB Provider for ODBC Drivers
Please tell me what I might be doing wrong.
Thanks,
Brooks