If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Open

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-03-06, 02:48
accessman2 accessman2 is offline
Registered User
 
Join Date: Sep 2005
Posts: 313
Open

I have a question.
I want to open the MS Access file with user-level Security.

I know that if I do NOT setup user-level Security in the MS Access file, and create the table for login in the MS Access file, then it works. I did that.
But, I want to know whether or not we can use ASP code to open the MS Access (MS Access user-level Security setting).

Can we do it in ASP?

The following code cannot support it:
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/try.mdb"
%>

Please let me know, thanks.
Reply With Quote
  #2 (permalink)  
Old 04-21-06, 10:39
csamuels csamuels is offline
Registered User
 
Join Date: Mar 2006
Location: south jersey, usa
Posts: 53
Code:
dim routefile, conn

routefile = "c:\somepath\db.mdb"

conn.open "DRIVER={Microsoft Access Driver (*.mdb)};" &_ 
              "DBQ=" & RouteFile & ";DefaultDir=;UID=;PWD=;"
add uid and pwd.
__________________
"They say Moses split the Red Sea
I split the blunt and rolled the fat one, I'm deadly"
-- Tupac 'Blasphemy'
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On