Solved

ASP to Access DB

Posted on 2006-10-22
5
254 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
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 properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now