If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Database Web Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-09-02, 13:50
russellrl2 russellrl2 is offline
Registered User
 
Join Date: Apr 2002
Location: Austin, Texas
Posts: 4
Unhappy Database Web Access

A couple of years ago, a project hired a student to write VB5 code to link a Microsoft Access 97 database to their website. This was originally setup on a Windows NT 4.0 server. We moved the site to a Windows 2000 server and everything seems to work except opening the database. No experts on VB5 here anymore. We know that it is not a permissions issue. Here is the main code for opening the database. Is there something we have to change to make it work on Windows 2000.

Dim ProfileName As String, ProfileDate As String, StartTime As String
Dim i As Integer
Dim MyFile As String
Dim MyWorkspace As Workspace, MyDatabase As Database
Dim Rs As Recordset
Dim SQLquery As String
Dim ErrorCondition As Integer

MyFile = "d:\wwwroot\_vti_log\beach.mdb"
' MyFile = "d:\thscmp_cgi\Beach.mdb"
On Error GoTo DBErrorHandler
Set MyWorkspace = Workspaces(0)

' Send "reach request profile </body></html>"

Set MyDatabase = MyWorkspace.OpenDatabase(MyFile)

' Send "reach request profile </body></html>"

If Not ErrorCondition Then
On Error GoTo RecordErrorHandler
'open record set
SQLquery = "SELECT * FROM [Beach profiles]"
Set Rs = MyDatabase.OpenRecordset(SQLquery, dbOpenDynaset)
Reply With Quote
  #2 (permalink)  
Old 04-10-02, 13:38
Rafael_Machado Rafael_Machado is offline
Registered User
 
Join Date: Mar 2002
Location: Santos - SP - Brazil
Posts: 13
Hi russellrl2,

What is the error message that you get when you open database?

regards,

Rafael
Reply With Quote
  #3 (permalink)  
Old 04-11-02, 06:07
russellrl2 russellrl2 is offline
Registered User
 
Join Date: Apr 2002
Location: Austin, Texas
Posts: 4
We are not getting an error other than Can't Open Database.
Reply With Quote
  #4 (permalink)  
Old 04-15-02, 12:43
Robert_Webb Robert_Webb is offline
Registered User
 
Join Date: Apr 2002
Posts: 1
Have you looked at the old NT 4.0 machine to see if they were using some type of ODBC connector??
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On