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

How to get VB app to generate Access 2003 databases with DAO?

Hi all,

I'm working with a VB app, using DAO 3.6, that used to generate Access
'97 databases using the following code:

Set dbsNew = wrkDefault.CreateDatabase(strLPAccessInv, dbLangGeneral,
dbVersion30)

I was able to have it create databases in Access 2000 by changing
"dbVersion30" to "dbVersion40". Do I generate a database in Access
2003 by changing the code to something like "dbVersion50" or do I need
to re-write the code in ADO or is there some other issue I'm not aware
of? The new databases consist of tables with data only, nothing else.

Thanks.
Robin
Nov 13 '05 #1
3 6167
The "Access" databases you are generating are, in actuality, Jet database
engine databases. The Jet database engine used by Access 2003 is the same
Jet 4.0 database engine used with Access 2000, so your "dbVersion40" ought
to work just fine. There have been eight (8) SPs to Jet 4.0, and I suggest
you make sure you obtain and apply all of them.

Larry Linson
Microsoft Access MVP

"Robin" <du**************@yahoo.com> wrote in message
news:19**************************@posting.google.c om...
Hi all,

I'm working with a VB app, using DAO 3.6, that used to generate Access
'97 databases using the following code:

Set dbsNew = wrkDefault.CreateDatabase(strLPAccessInv, dbLangGeneral,
dbVersion30)

I was able to have it create databases in Access 2000 by changing
"dbVersion30" to "dbVersion40". Do I generate a database in Access
2003 by changing the code to something like "dbVersion50" or do I need
to re-write the code in ADO or is there some other issue I'm not aware
of? The new databases consist of tables with data only, nothing else.

Thanks.
Robin

Nov 13 '05 #2
Larry,

Thanks very much for your advice. I checked, and it seems that I have
version 4.0.8618.0 (Security Bulletin MS04-014) of msjet40.dll -- so
I'm as current as I can get. Is what you're saying that by using
"dbVersion40" the code below should generate a database in Access2003
rather than 2000?

Thanks again,
Robin


"Larry Linson" <bo*****@localhost.not> wrote in message news:<jCF1d.5701$MS1.401@trnddc02>...
The "Access" databases you are generating are, in actuality, Jet database
engine databases. The Jet database engine used by Access 2003 is the same
Jet 4.0 database engine used with Access 2000, so your "dbVersion40" ought
to work just fine. There have been eight (8) SPs to Jet 4.0, and I suggest
you make sure you obtain and apply all of them.

Larry Linson
Microsoft Access MVP

Nov 13 '05 #3

"Robin" <du**************@yahoo.com> wrote in message
news:19**************************@posting.google.c om...
Larry,

Thanks very much for your advice. I checked, and it seems that I have
version 4.0.8618.0 (Security Bulletin MS04-014) of msjet40.dll -- so
I'm as current as I can get. Is what you're saying that by using
"dbVersion40" the code below should generate a database in Access2003
rather than 2000?


No, what I was trying to say is that _Access_ is not involved in your
database in any way at all. VB interfaces directly to the Jet database
engine -- what you are generating is a _Jet_ database.

But, few of us, and especially Microsoft, are careful to draw that
distinction and often resort to the verbal shortcut of calling it an "Access
database".

Access 2000 uses Jet 4.0, to which all 8 SPs should have been applied.
Access 2003 uses Jet 4.0, to which all 8 SPs should have been applied. As
far as I know the "differences" between a database generated by Access 2000
and one generated by Access 2003 and saved in "Access 2003 format" are all
in the database objects: queries, forms, reports, macros, and modules, not
in the tables or the data itself.

Larry Linson
Microsoft Access MVP
Nov 13 '05 #4

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

Similar topics

2
by: edo | last post by:
100 Day Analysis Following is a summary of articles spanning a 100 day period, beginning at 10 Sep 2003 06:41:30 GMT and ending at 19 Dec 2003 04:09:06 GMT. Notes ===== - A line in the...
7
by: Wayne Aprato | last post by:
I have several Access 2003 mde databases. When I try to open them in Access 2002 I get the following error: "The Visual Basic for Applications project in the database is corrupt." ...
1
by: Mike | last post by:
Hi Hi We are currently upgrading from access 97 to office 2003 on site. We would like to upgrade our access databases to Access 2003 but we wish to remove Microsoft access software from our end...
1
by: com | last post by:
Extreme Web Reports 2005 - Soft30.com The wizard scans the specified MS Access database and records information such as report names, parameters and subqueries. ......
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
49
by: Mell via AccessMonster.com | last post by:
I created databases on Access 2003 and I want to deploy them to users. My code was also done using 2003. If they have Ms Access 2000 or higher, will they be able to use these dbs with all code,...
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
12
by: sparks | last post by:
My boss and I both have access 97 and access 2003 installed on our systems. Lately he has been having a lot of problems. Databases that won't close. The database looks like it closes but access...
3
by: Bruce | last post by:
I have a number of Access 2000 format databases on a Windows 2003 server. For some reason I can no longer compact these databases directly on the server using Access 2003. Access 2000 seems to...
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
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
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...
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.