Forum Moderators: phranque

Message Too Old, No Replies

Web-enabled Access Database question

How does it work?

         

Hiro

10:58 pm on Jun 30, 2004 (gmt 0)

10+ Year Member



Hi all,
I'm new to the site and I've looked everywhere else. I can't seem to make this work. What I'm trying to do is to make a Microsoft Access database that is accessable from the web.

I've already went through the normal "HTML design wizard" thing. The only problem is in the HTML code I get by default:

Data Source=C:\foo\bar\somewhere\database.mdb

That's well and good for me, but I need the database to point to a web address. I tried changing the database simular to this:

Data Source=http://www.somesite.com/data/database.mdb

..and I get all kinds of errors. Namely:
"Not a valid file name" and
"Data provider could not be initialized"

The http path is right, it just... doesn't work. Anybody out there know what I may be doing wrong, or perhaps a way to remedy this?

macrost

3:29 am on Jul 1, 2004 (gmt 0)

10+ Year Member



Welcome to WebmasterWorld Hiro!

One question, what language are you using for the connection to the database? This is going to be a server-side technology such as php or asp. Once we know, and see the code you are using to try and connect, we can help you out.

Hiro

4:22 am on Jul 1, 2004 (gmt 0)

10+ Year Member



It's an object of some type. The language appears to be XML. I'm basicly using Microsoft Access to build the html code, then polishing it up by hand. The problem lies nested in a param tag. Below is the tag..

Note the "Data Source=H:\Assett Tracking1.mdb" shortly after the <PARAM> tag begins. This is the problem. I need that to point somehow to an http address, but it gives me the above mentioned errors when I try to change the path to anything without a drive styled path. (such as C:\blahblah..). Any ideas?

<PARAM NAME="XMLData" VALUE="<xml xmlns:a=&quot;urn:schemas-microsoft-com:office:access&quot;>&#13;&#10; <a:DataSourceControl>&#13;&#10; <a:OWCVersion>9.0.0.4309</a:OWCVersion>&#13;&#10; <a:ConnectionString>Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=H:\Asset Tracking1.mdb;Mode=Share Deny None;Jet OLEDB:System database=&amp;quot;&amp;quot;;Jet OLEDB:Database Password=&amp;quot;&amp;quot;</a:ConnectionString>&#13;&#10; <a:MaxRecords>10000</a:MaxRecords>&#13;&#10; <a:GridX>24</a:GridX>&#13;&#10; <a:GridY>24</a:GridY>&#13;&#10; <a:ElementExtension>&#13;&#10; <a:ElementID>AssetCategoriesNavigation</a:ElementID>&#13;&#10; <a:ConsumesRecordset/>&#13;&#10; </a:ElementExtension>&#13;&#10; <a:ElementExtension>&#13;&#10; <a:ElementID>AssetCategoryID</a:ElementID>&#13;&#10; <a:ControlSource>AssetCategoryID</a:ControlSource>&#13;&#10; <a:ChildLabel>AssetCategoryID_Label</a:ChildLabel>&#13;&#10; </a:ElementExtension>&#13;&#10; <a:ElementExtension>&#13;&#10; <a:ElementID>AssetCategory</a:ElementID>&#13;&#10; <a:ControlSource>AssetCategory</a:ControlSource>&#13;&#10; <a:ChildLabel>AssetCategory_Label</a:ChildLabel>&#13;&#10; </a:ElementExtension>&#13;&#10; <a:GroupLevel>&#13;&#10; <a:RecordSource>Asset Categories</a:RecordSource>&#13;&#10; <a:DefaultSort></a:DefaultSort>&#13;&#10; <a:HeaderElementId>HeaderAssetCategories</a:HeaderElementId>&#13;&#10; <a:FooterElementId></a:FooterElementId>&#13;&#10; <a:CaptionElementId></a:CaptionElementId>&#13;&#10; <a:RecordNavigationElementId>NavigationSectionAssetCategories</a:RecordNavigationElementId>&#13;&#10; <a:DataPageSize>1</a:DataPageSize>&#13;&#10; </a:GroupLevel>&#13;&#10; <a:Datamodel version=&quot;0816&quot;>&#13;&#10; <a:SchemaRowsource id=&quot;Asset Categories&quot; type=&quot;dscTable&quot;>&#13;&#10; <a:SchemaField id=&quot;AssetCategoryID&quot; datatype=&quot;3&quot; size=&quot;0&quot; iskey=&quot;1&quot;/>&#13;&#10; <a:SchemaField id=&quot;AssetCategory&quot; datatype=&quot;202&quot; size=&quot;50&quot;/>&#13;&#10; </a:SchemaRowsource>&#13;&#10; <a:RecordsetDef id=&quot;Asset Categories&quot;>&#13;&#10; <a:PageField id=&quot;AssetCategoryID&quot;/>&#13;&#10; <a:PageField id=&quot;AssetCategory&quot;/>&#13;&#10; </a:RecordsetDef>&#13;&#10; </a:Datamodel>&#13;&#10; </a:DataSourceControl>&#13;&#10;</xml>'&quot;"></OBJECT>