473,405 Members | 2,334 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,405 software developers and data experts.

createdatabase creates wrong version of access db

I am using the following code in an access2002 db to create another
access db:

Set dbsNew = wspDefault.CreateDatabase("c:\propfnldata.mdb",
dbLangGeneral, dbVersion30)

which should create an access95 db, but it is creating it in
access2000. Does anyone know why? I need it to be in access95 (or 97)
format.
Nov 13 '05 #1
2 4461
Jeff, just tried your code, and it created a file that opened fine in Access
97.

If yours does not work, do you have at least SP2 for Office XP, and SP8 for
JET 4?

The actual code I tested was:

Function MakeDb()
Dim wspDefault As DAO.Workspace
Dim dbsNew As DAO.Database

Set wspDefault = DBEngine(0)
Set dbsNew = wspDefault.CreateDatabase("c:\propfnldata.mdb",
dbLangGeneral, dbVersion30)

Set dbsNew = Nothing
Set wspDefault = Nothing
End Function
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jeff" <jm*******@ruralins.com> wrote in message
news:95**************************@posting.google.c om...
I am using the following code in an access2002 db to create another
access db:

Set dbsNew = wspDefault.CreateDatabase("c:\propfnldata.mdb",
dbLangGeneral, dbVersion30)

which should create an access95 db, but it is creating it in
access2000. Does anyone know why? I need it to be in access95 (or 97)
format.

Nov 13 '05 #2
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message news:<41***********************@per-qv1-newsreader-01.iinet.net.au>...
Jeff, just tried your code, and it created a file that opened fine in Access
97.

If yours does not work, do you have at least SP2 for Office XP, and SP8 for
JET 4?

The actual code I tested was:

Function MakeDb()
Dim wspDefault As DAO.Workspace
Dim dbsNew As DAO.Database

Set wspDefault = DBEngine(0)
Set dbsNew = wspDefault.CreateDatabase("c:\propfnldata.mdb",
dbLangGeneral, dbVersion30)

Set dbsNew = Nothing
Set wspDefault = Nothing
End Function
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jeff" <jm*******@ruralins.com> wrote in message
news:95**************************@posting.google.c om...
I am using the following code in an access2002 db to create another
access db:

Set dbsNew = wspDefault.CreateDatabase("c:\propfnldata.mdb",
dbLangGeneral, dbVersion30)

which should create an access95 db, but it is creating it in
access2000. Does anyone know why? I need it to be in access95 (or 97)
format.


Allen, thanks for responding. Yes, i have both SP2 and SP8. My code
is the same as yours. The situation is this: I have to support an
access application which is distributed to various computers around
the state. They were all on access 97. Basically, what they would do
is use the application to send information to each other via e-mail.
In the e-mail is the access db created from their application, which
they could open, no problem. This process cannot be changed. However,
some of these field pc's now have access2002 on them, and when they
create the db to send, it is creating it in access2000 format, which
the access97 apps cannot handle. The help for the createdatabase
command in access 2002 says that the dbVersion30 parameter should
create the database in access95 format, but it obviously is not. What
is odd is that we have an almost identical application (access 2002
also) at the home office which does the same thing, and it does create
the db in access95 format. I cannot figure this out. Any further
thoughts would be appreciated.
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: j3crowe | last post by:
Hi, I'm using exec to call a compiled C program that creates/writes to a file...However this doesn't seem to be working.... I tried setting all the permissions to 777 but still nothing...?? ...
0
by: astro | last post by:
I am using an Access2k/VBA60 setup. When I call the following I get an Access97 mdb - I want an Access2k mdb. Set mNewdb = CreateDatabase(CurrentDBDir & "newdb.mdb", dbLangGeneral, 64) ...
1
by: senthil111 | last post by:
hello my name is senthil, i am facing a problem in creating database in ms access using vb 6.0 . i placing error code below dim db as database set db=createdatabase("test.mdb","c:\") i am...
5
by: rogersw8n | last post by:
Some how, some way the account that creates folders under Temporary Internet files has been changed to a domain account for VS 2003 and VS 2005. I recently installed VS 2005. All seemed to be ok...
0
by: Accessed | last post by:
Using Access 2007 to work on Access version 2003 database. Part of the process creates a temporary database using the createdatabase method, then links to a table in that temporary database. ...
1
by: satishkumaar | last post by:
when a database is created using VC++ , it creates Access 95 format. how to create access database of latest versions?
27
by: Dave | last post by:
I'm having a hard time tying to build gcc 4.3.1 on Solaris using the GNU compilers. I then decided to try to use Sun's compiler. The Sun Studio 12 compiler reports the following code, which is in...
8
by: Frank Hauptlorenz | last post by:
Hello out there, I changed an existing and good working webservice from an wsHttpBinding to an NetTcpBinding. This is working (after trying some time) and has real a better performance! But...
1
by: kfry | last post by:
I am having an issue maybe someone can help with. I have written an application with Access 2003 on my XP pc. I then package it and install it on my VISTA Access 2007 PC. When I do this the wrong...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.