Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS Access
 I need help!
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ZeroTolerance
Starting Member

23 Posts

Posted - 05 July 2001 :  03:01:03  Show Profile
I just got this forum and I am getting this error. I tried hundreds of combinations on how to correct it with no luck please help!

Microsoft VBScript compilation error '800a0409'

Unterminated string constant

/Forums/config.asp, line 55

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="/tools/snitz_forum.mdb"
--------------------------------------------------------------------------------------^


GauravBhabu
Advanced Member

4288 Posts

Posted - 05 July 2001 :  03:17:22  Show Profile
quote:

I just got this forum and I am getting this error. I tried hundreds of combinations on how to correct it with no luck please help!

Microsoft VBScript compilation error '800a0409'

Unterminated string constant

/Forums/config.asp, line 55

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="/tools/snitz_forum.mdb"
--------------------------------------------------------------------------------------^






change as below:


strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/tools/snitz_forum.mdb")
'## MS Access 2000 using virtual path


gauravbhabu

There is only one miracle...That is LIFE!

Edited by - GauravBhabu on 05 July 2001 03:18:27
Go to Top of Page

ZeroTolerance
Starting Member

23 Posts

Posted - 05 July 2001 :  03:38:35  Show Profile
I am not using the virtual path one because when I do it gives me nothing, not even an error just a blank page. I am wodering why I am still getting this message please I just want to get the forum up and running hehe!

Error Message:
Microsoft VBScript compilation error '800a0409'

Unterminated string constant

/Forums/config.asp, line 55

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="/tools/snitz_forums_2000.mdb" '## MS Access 2000
---------------------------------------------------------------------------------------------------------------^


Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 05 July 2001 :  06:30:24  Show Profile
quote:

I am not using the virtual path one because when I do it gives me nothing, not even an error just a blank page. I am wodering why I am still getting this message please I just want to get the forum up and running hehe!

Error Message:
Microsoft VBScript compilation error '800a0409'

Unterminated string constant

/Forums/config.asp, line 55

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="/tools/snitz_forums_2000.mdb" '## MS Access 2000
---------------------------------------------------------------------------------------------------------------^






here, may be you are missing > ; < at the end. try also with the full path.

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="/tools/snitz_forums_2000.mdb;" '## MS Access 2000


gauravbhabu

There is only one miracle...That is LIFE!

Edited by - GauravBhabu on 05 July 2001 06:34:40
Go to Top of Page

ZeroTolerance
Starting Member

23 Posts

Posted - 05 July 2001 :  12:14:18  Show Profile
After I added the ; I get this error message now.
Microsoft VBScript compilation error '800a0401'

Expected end of statement

/Forums/config.asp, line 55

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="/tools/snitz_forums_2000.mdb;" '## MS Access 2000
-------------------------------------------------------------------------------------------^


Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 05 July 2001 :  12:30:08  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
The problem is the quotation marks. Try changing it to this:

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""/tools/snitz_forums_2000.mdb"""



Dave Maxwell
--------------
Proud to be a "World Class" Knucklehead
Go to Top of Page

ZeroTolerance
Starting Member

23 Posts

Posted - 05 July 2001 :  12:37:48  Show Profile
Ok I changed to that and now I get a blank white page. That is all. I hate to be a burden but this is driving me nuts and I self taught myself HTML hehe

Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 06 July 2001 :  00:20:00  Show Profile
quote:
strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="/tools/snitz_forum.mdb"

Problem one is the quote after Source= it needs to be removed.

Problem two is you are trying to reference your database by a URL instead of a physical path. Look at the examples in config.asp with Server.MapPath(), or download the whereami tool from the Snitz forum home and use the correct physical path to your database.

When you enter a physical path it will look like

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\inetpub\wwwroot\myweb\tools\snitz_forum.mdb"


======
Doug G
======
Go to Top of Page

marsh
Starting Member

7 Posts

Posted - 06 July 2001 :  22:39:12  Show Profile
So you cant have your database thing run off a webserver? It's gonna be the physical thing on your hard drive?

Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 06 July 2001 :  23:08:22  Show Profile
Yes, you must specify a physical path.

You can use the Server.MapPath("url_to_mdb") function to automatically determine the physical path from a url. There are examples in config.asp (use a real url btw)


======
Doug G
======
Go to Top of Page

ZeroTolerance
Starting Member

23 Posts

Posted - 09 July 2001 :  23:49:57  Show Profile
OK I tried everything and here is my response I get when trying to run config.asp from my website:

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/Forums/config.asp, line 54

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= & Server.MapPath("http://www.mydomain.com/Forums/tools/snitz_forums_2000.mdb")" '## MS Access 2000 using virtual path
---------------------------------------------------------------------------------^




Edited by - ZeroTolerance on 09 July 2001 23:50:36
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 10 July 2001 :  01:07:05  Show Profile
As was said before, you can't use a URL to point to your database.

Do this, go here http://forum.snitz.com/archive/default.asp?catid=11&cattitle=Forum+Setup+Tools and download the "Where Am I?" tool. Extract the file to where your database is and go to the file using your browser. It will tell you the physical location to your database.

Then you will use the following connection string:
strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=PATH TO DATABASE;" '## MS Access 2000
replacing the text "PATH TO DATABASE" with the path you got from the where am I? script.

- David
Go to Top of Page

ZeroTolerance
Starting Member

23 Posts

Posted - 10 July 2001 :  01:23:04  Show Profile
OK I am gonna try this now will post results thanks for all your help, I really want to get this working. Once again thanks an I never wanted to be a burden.

Go to Top of Page

ZeroTolerance
Starting Member

23 Posts

Posted - 10 July 2001 :  02:02:00  Show Profile
OK got everything going now getting this error.
Microsoft JET Database Engine error '80004005'

Operation must use an updateable query.

/Forums/inc_functions.asp, line 644


Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 10 July 2001 :  02:07:51  Show Profile
That's a permissions problem with your database file and the folder it is in. It needs Read/Write permissions for the anonymous user account.

You can do a search here on the forum for "Operation must use an updateable query.". You will find quite a few answers to that error.

- David
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.55 seconds. Powered By: Snitz Forums 2000 Version 3.4.07