473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Error 80004005

5
I have a package i used it for 3 days ago and then i got these 2 error
Run Time Error unspecified error ( 80004005)
and Run Time Error Could not lock file ( 80004005)

and these are my codes with ADODB connection

Dim db As AdODB.Connection
Dim rs As Recordset

Set db = New AdODB.Connection
Set rs = New AdODB.Recordset

With db
.CursorLocation = adUseClient
.Provider = "Microsoft.Jet.OLEDB.3.51"
.Open "db297.mdb", "admin", ""
End With

With rs
.Open "SELECT * FROM Table1 where ID <> 0", db, adOpenForwardOnly, adLockOptimistic
End With


rs.AddNew

rs("Action") = ("Success Verification")


rs("Date") = DateTime.Month & "/" & DateTime.Day & "/" & DateTime.Year
rs("Time") = DateTime.Hour & ":" & DateTime.min & ":" & DateTime.Sec
rs.Update

Set DataGrid1.DataSource = rs
DataGrid1.Refresh

rs.Close
db.Close
and database in Access 97 as my customer request , i do not if the problem will be solved if i use Access 2000 or Access 2003

can any one advice me??????
Aug 8 '06 #1
7 42482
sashi
1,754 Expert 1GB
Hi there,

runtime error 80004005 refers to unrecognized database format.. what is the version of your access database? use Jet Ver 4.0 for access 2000/2003.. Jet 3.5.1 for access 97.. take care my fren.. :)
Aug 9 '06 #2
samah
5
Thanks for your reply, i used this provider

Provider = "Microsoft.Jet.OLEDB.3.51" in my codes and my db is with
Access 97 as my customer needs :confused:
Aug 10 '06 #3
sashi
1,754 Expert 1GB
Hi Samah,

if that's he case.. are you able to open the access db with your ms-access software? this is just to make sure your db isn't corrupted.. if the problem continues.. try creating the db all over again with exact structure and save it as access 97 format.. take care and good luck my fren.. :)
Aug 10 '06 #4
sashi
1,754 Expert 1GB
Hi Samah,

i almost forgot to ask you abt the MDAC component you are currently using.. MDAC ver 2.1 is perfect for access 97 db.. check that out too..
Aug 10 '06 #5
samah
5
Hi Samah,

i almost forgot to ask you abt the MDAC component you are currently using.. MDAC ver 2.1 is perfect for access 97 db.. check that out too..
Hi Sashi

Thanks for your reply and iam sorry for this delay time, I used MDAC ver. 2.5 , i do not have MDAC ver 2.1 , do you have it or do you know in which site can i find it?????pls reply me soonest
Aug 16 '06 #6
samah
5
Hi Shashi,

I read that MDAC 2.1 is used for Windows 98 , is it?????
Im using WindowsXP and also my client so Iam confused :rolleyes:

Thanks
Aug 16 '06 #7
i think the problem is coz of this symbol <>

With rs
.Open "SELECT * FROM Table1 ", db, adOpenForwardOnly, adLockOptimistic
End With
Jul 13 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Christophe Cerbourg | last post by:
hi, in an ASP page, I coonect to a MSACCESS database and the first load of the page is correct but, when I immediately refresh the same page, I get an 80004005 error... Thanks for any idea......
1
by: Richard | last post by:
I have been programming in Access and HTML for several years and have decided to put these together by adding ecommerce to my site in ASP. I bought a template from ecommercetemplates and just need...
15
by: M P | last post by:
What does this mean? I am accessing an ASP page that queries Access Database thru fileDSN. I'm using IIS 5.0 Win2K SP4 Microsoft OLE DB Provider for ODBC Drivers error '80004005' General...
7
by: A P | last post by:
I receive an error like this: Server.MapPath() error 'ASP 0172 : 80004005' Invalid Path /conn.asp, line 2 The Path parameter for the MapPath method must be a virtual path. A physical path...
2
by: Maurizio Amoroso | last post by:
.... DTSRun: Executing... DTSRun OnStart: DTSStep_DTSExecuteSQLTask_1 DTSRun OnStart: DTSStep_DTSExecuteSQLTask_2 DTSRun OnStart: DTSStep_DTSExecuteSQLTask_4 DTSRun OnStart:...
6
by: Rowan | last post by:
Hello, I have been trying to solve this problem for a couple of weeks now with no progress. I created a package that works when it runs from my computer but when it runs as a scheduled job, it...
9
by: Luc Dal | last post by:
Hello, I've serious problem using ASP under WindowsXP sp2. I get the following reply (sorry it's in french) Erreur de compilation Microsoft VBScript error '800a0401' Fin d'instruction...
2
by: ago | last post by:
I am trying to make the win32com HelloWorld server work with a VBA client but I get: Run-time error '-2147467259(80004005)': Automation error Unspecified error I googled for the error but...
0
by: andy3381 | last post by:
Hi, I am having a scheduled job running DTS packages on my production environment. My production server server is having Window 2003 Sp2 installed on it. Before rebuilding the server I was...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.