|
-
Jun 3rd, 2003, 10:04 AM
#1
Thread Starter
Hyperactive Member
Database Unrecognized
My code is this:
VB Code:
Private Sub Form_Load()
Dim Db As Database
Set Db = OpenDatabase(App.Path & "\Stilo DB.mdb")
End Sub
I got This error:
Unrecognized Database format
What is the problem?
(I got MS Access 2002 XP)
-
Jun 3rd, 2003, 10:09 AM
#2
Frenzied Member
Just out of interest, try renaming the .MDB file so it doesn't have a space in the filename, and then see if it works...
Also what does App.Path have in it at the time?
Do a
Msgbox App.Path
before the OpenDatabase line to see what's in it.
'Buzby'
Visual Basic Developer
"I'm moving to Theory. Everything works there."
-
Jun 3rd, 2003, 10:11 AM
#3
Let me in ..
Re: Database Unrecognized
Originally posted by Stiletto
My code is this:
VB Code:
Private Sub Form_Load()
Dim Db As Database
Set Db = OpenDatabase(App.Path & "\Stilo DB.mdb")
End Sub
I got This error:
Unrecognized Database format
What is the problem?
(I got MS Access 2002 XP)
Did you create the MDB file in same access version ....
-
Jun 3rd, 2003, 10:11 AM
#4
Thread Starter
Hyperactive Member
I know whats in it. Its the app path
I think it has something to do with the DB
I have here an old DB from 97, and i can connect to him with no problems at all.
what is wrong with access XP 2002 version?
-
Jun 3rd, 2003, 10:13 AM
#5
Thread Starter
Hyperactive Member
Re: Re: Database Unrecognized
Originally posted by techyspecy
Did you create the MDB file in same access version ....
What do you mean in SAME ACCESS VERSION?
-
Jun 3rd, 2003, 10:17 AM
#6
Let me in ..
Re: Re: Re: Database Unrecognized
Originally posted by Stiletto
What do you mean in SAME ACCESS VERSION?
Is the MDB file was created in Access 2002 XP which you have on your machine or it was created in some earlier Access version ? If it was created in earlier version then you're gonna have to upgrade it to latest version.
-
Jun 3rd, 2003, 10:20 AM
#7
Thread Starter
Hyperactive Member
Re: Re: Re: Re: Database Unrecognized
Originally posted by techyspecy
Is the MDB file was created in Access 2002 XP which you have on your machine or it was created in some earlier Access version ? If it was created in earlier version then you're gonna have to upgrade it to latest version.
Check this out, this is weird:
I created this DB from the Access which is installed in my comp.
A friend sent me an old version (97) DB.
Weird is that i can connect to the old version DB not THIS one...
-
Jun 3rd, 2003, 10:22 AM
#8
Let me in ..
Do yourself a favour and install the latest version of MDAC on your machine. You can download it from www.microsoft.com
-
Jun 3rd, 2003, 10:27 AM
#9
Fanatic Member
I got the same error when using access 2k with VB.
It doesnt work!
search the forum for 'unrecognised database format' for more info...
Trust no one
----------------------------------------
http://www.eccentrix.com/members/xeaudrey/exanegotium.html
http://www.eccentrix.com/members/xeaudrey/
-
Jun 3rd, 2003, 10:27 AM
#10
Thread Starter
Hyperactive Member
MDAC?
If one of the users dont have the latest version, will he be able to opeb the DB?
-
Jun 3rd, 2003, 10:41 AM
#11
Thread Starter
Hyperactive Member
Hmm..
I dont want to download MDAC.
What i did is convert the DB to 97 version. all good now.
-
Jun 3rd, 2003, 11:29 AM
#12
Fanatic Member
Originally posted by evexa
I got the same error when using access 2k with VB.
It doesnt work!
search the forum for 'unrecognised database format' for more info...
if u are using dao , Access jet engines should be considered
Access 97 - Ms Jet engine 3.5 same as dao 3.51
Access 2000 - Ms jet Engine 4.0 Same as dao 3.6
Access 2002 (Xp) - Ms jet Engine 4.0 Same as dao 3.6
one more problems will be faced if u use data control
(everybody runs towards ado control anyway ) , it won't connect to access 2000 or Access 2002 ( Xp )
-
Jun 3rd, 2003, 11:33 AM
#13
Thread Starter
Hyperactive Member
k tnx
Can you plz help me to read data from the DB, in this post:
http://www.vbforums.com/showthread.p...hreadid=247950
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|