Solved

ASP to Access DB

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…

757 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

21 Experts available now in Live!

Get 1:1 Help Now