Solved

ASP to Access DB

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Code Editors 10 214
Visual Studio 2013  Distorts Chrome Browser 2 182
Online video resource for customers 3 130
I starting with php 12 136
In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
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…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

792 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