This topic is locked

Login with data from 2 tables

4/11/2007 18:51:19
ASPRunnerPro General questions
S
Steve123 author

Hi,
I am using an access database with a table for customers and table for employees. The customers table contains cuctomer information and their login IDs and Passwords. The employees table contains employee information and their login IDs and Passwords. I am having trouble getting 1 login page to allow both customers and employees to login. Also, if possible I would like customers to only be able to edit their information but allow employees to modify both their information and the custoemrs information.
Thank You so much!!!

J
Jane 4/12/2007

Steve,
unfortunately there is no easy way to make it as one project.

You can create two projects (for customers and for employees) and put these projects in different directories on the server.
You should uncheck Use Server.MapPath option on Database File tab so that you work with originally database and rebuild project. Then move your database to special folder with write and read permissions on your webserver. There must be a folder at your server designed specially for storing database. To specify folder path contact admin of your web-hosting.

Then you need to move database file to that directory and update connection string accordingly.

http://xlinesoft.com/asprunner/docs/troubl...ery__errors.htm

S
Steve123 author 4/13/2007

2 projects isn't a problem...i'm just having issues with the connection string. The access database is stored in a folder called database on my designated folder on the server. Ex. http://www.site.com/web/myself/database/file.mdb What would be the connection string
also i tried without success
strConnection = "Provider=MSDataShape;DBQ=" & server.mappath("..\..\database\file.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;UID=admin;"

Sergey Kornilov admin 4/13/2007

Connection string depends on where ASP files reside.

What is the URL of the application itself (or folder name).

S
Steve123 author 4/15/2007

The asp files would be at http://www.site.com/web/myself/customerlogin/login.asp

The database is in http://www.site.com/web/myself/database/file.mdb
The connection string is giving me alot of trouble and i would love any help possible

Alexey admin 4/16/2007

Steve,

herte is the connection string for your setup:

strConnection = "Provider=MSDataShape;DBQ=" & server.mappath("..\database\file.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;UID=admin;"

S
Steve123 author 4/16/2007

PERFECT!!! thank you so much!!!