Solved

ASP to Access DB

Posted on 2006-10-22
5
262 Views
Last Modified: 2013-12-24
I am trying to create a data entry page interfacing to an Access DB. I have had some success with this in the past, but now it doesn't work. Each time I design the form and let FP create the DB ( I get the same error interfacing to an existing DB), I get the following error:

Server error: Unable to retrieve the list of record sources from a database using the connection string:

DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=fpdb/Rego.mdb.

The following error message comes from the database driver software; it may appear in a different language depending on how the driver is configured.
-------------------------------------------------------


Source: ADO
Number: -2146824584 (0x800a0e78)

I am using FP 2003 and Access 203 and the database is in 2000 format.

Grateful for any assistance

Thanks


Ursa

0
Comment
Question by:UrsaMajor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 16

Expert Comment

by:CWS (haripriya)
ID: 17786927
use the below connection string and make sure your database is in the folder fpdb.

DRIVER={Microsoft Access Driver (*.mdb)};DBQ=fpdb/Rego.mdb"

Hope this helps.
0
 

Author Comment

by:UrsaMajor
ID: 17787484
thank you for your help. I tried using the .ASP page and now it accepts all the data. However, the access database is not accepting the updates. I did not enter that connection string as I am unsure where it goes.

Is there something else I can try. Thanks



ursa
23/10
0
 
LVL 16

Expert Comment

by:CWS (haripriya)
ID: 17787980
Can u post your code?
0
 
LVL 16

Accepted Solution

by:
ThinkPaper earned 250 total points
ID: 17788897
You'll need something like this near the top of your page, before you do anything to the DB:
<%
set cnn = server.createobject("ADODB.Connection")
cnn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=fpdb/Rego.mdb"
%>

If it is failing to update because of permission problems, right click your fpdb folder and click on sharing and security and make sure that "Internet users" (something like that - i forget exactly what the user is called) has permissions to edit stuff in that folder.

If that still doesn't work, perhaps showing us your code will help us figure out what the problem is.
0
 

Author Comment

by:UrsaMajor
ID: 17801071
Problem was indeed related to the security of the fpdb folder. I changed the access for Internet Guest and bobs your uncle, it all worked as if by magic.

Thanks again


Ursa
25/10
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question