This is a discussion on "Relative linking to Access..." within the Classic ASP section. This forum, and the thread "Relative linking to Access... are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Relative linking to Access...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Relative linking to Access...
My problem that I am having is that I have always used a DNS for my databases and I haven't ever done this before. Here is my problem.
I need index.asp to submit a form to Data.mdb . Data.mdb is in the same folder as index.asp so all I need is a relative link (I believe). I have tried using the tutorial on this but have had no luck. My database has a password on it so lets just call that DUCK. Anyone that can give me the code for this will be forever in my gratitude. Thanks guys! |
|
|
|
#2
|
|||
|
|||
|
I usually use something like:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.mappath("mydb.mdb") be aware though that hvaing the database in the root of folder means it is exposed to the possiblity of being directly downloaded. Best to place it in a non-public folder. |
|
#3
|
|||
|
|||
|
Yeah, I am not worried about people downloading my database as this particular one has nothing of value or use to them inside of it.
Thanks for your help D3mon, but how do I add the password to this to open it? I've been trying this:
|
|
#4
|
|||
|
|||
|
http://www.connectionstrings.com suggest:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.mappath("mydb.mdb") & ";User Id=[username here];Password=[password here];" |
|
#5
|
|||
|
|||
|
Personally I've never had any luck using a password with Access, but maybe I just never did it right.
Funny, I avoided SQL Server for years thinking it was intimidating, but in now think it's easier than Access. (Not that you're using it for that reason) |
|
#6
|
||||
|
||||
|
just add a semi colon before the world Password in your string...
|
|
#7
|
|||
|
|||
|
Thanks Guys. Finally got the dern thing working!
|
![]() |
| Tags |
| relative, linking, access |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| relative linking in php | sudhakararaog | PHP Forum | 1 | Mar 12th, 2008 23:43 |
| ASP Multi users Access to Microsoft Access | ish | Classic ASP | 0 | Apr 26th, 2007 20:05 |
| Is it possible to position something relative something else? | the newbie web designer | Web Page Design | 7 | Feb 22nd, 2007 18:04 |
| Access: linking queries | djme | Databases | 0 | Oct 7th, 2006 19:24 |
| can layers be relative? | warmer | Web Page Design | 0 | Nov 8th, 2005 18:42 |