473,378 Members | 1,152 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,378 software developers and data experts.

Access 2000 vs. Access 2003

Is it possible to develop an Access app in Access 2003 that will run on
Access 2000? Is it just a matter of selecting "Access 2000" from the
Default File Format drop down list on the Advanced Tab of the Options
dialog?

I need to do some quick work for a client that runs Access 2000 and I've
only been doing working on 2002/2003 projects since installing Access 2003
on my development workstation. Do I need to install Access 2000 on my
development workstation? I assume 2000 and 2003 will co-exist without any
issues.

Thanks in advance.

Nov 13 '05 #1
8 5242
deko wrote:
Is it possible to develop an Access app in Access 2003 that will run
on Access 2000? Is it just a matter of selecting "Access 2000" from
the Default File Format drop down list on the Advanced Tab of the
Options dialog?

I need to do some quick work for a client that runs Access 2000 and
I've only been doing working on 2002/2003 projects since installing
Access 2003 on my development workstation. Do I need to install
Access 2000 on my development workstation? I assume 2000 and 2003
will co-exist without any issues.

Thanks in advance.


In addition to the file format you also have to avoid using any features that
wered added in 2002 and 2003 that don't exist in 2000. Other than that you
should be fine.

Oh...and you won't be able to give them an MDE since 2003 can only make an MDE
in the newer file format.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
> In addition to the file format you also have to avoid using any features
that
wered added in 2002 and 2003 that don't exist in 2000. Other than that you should be fine.

Oh...and you won't be able to give them an MDE since 2003 can only make an MDE in the newer file format.


Thanks.

I immediately ran into a problem with the Common Dialog with Access 2000...
will repost...
Nov 13 '05 #3
deko wrote:
In addition to the file format you also have to avoid using any
features that wered added in 2002 and 2003 that don't exist in 2000.
Other than that you should be fine.

Oh...and you won't be able to give them an MDE since 2003 can only
make an MDE in the newer file format.


Thanks.

I immediately ran into a problem with the Common Dialog with Access
2000... will repost...


Never use it (or any other ActiveX controls). More likely a difference
between two PCs than having anything to do with the Access version.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #4
> > I immediately ran into a problem with the Common Dialog with Access
2000... will repost...


Never use it (or any other ActiveX controls). More likely a difference
between two PCs than having anything to do with the Access version.


I think that's the issue - I was using ActiveX to get the dialog with Access
2003, now I need another way. I found some code on Microsoft's site to get
a file picker, but still need code for a folder picker. If you have code
for a folder picker, that would be a big help.

Here's what I've got for the file picker dialog:

Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _
"GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long

Private Type OPENFILENAME
lStructSize As Long
hwndOwner As Long
hInstance As Long
lpstrFilter As String
lpstrCustomFilter As String
nMaxCustFilter As Long
nFilterIndex As Long
lpstrFile As String
nMaxFile As Long
lpstrFileTitle As String
nMaxFileTitle As Long
lpstrInitialDir As String
lpstrTitle As String
flags As Long
nFileOffset As Integer
nFileExtension As Integer
lpstrDefExt As String
lCustData As Long
lpfnHook As Long
lpTemplateName As String
End Type

Private Function LaunchCD(strForm As Form, strSelect As String) As String
Dim OpenFile As OPENFILENAME
Dim lReturn As Long
Dim sFilter As String
OpenFile.lStructSize = Len(OpenFile)
OpenFile.hwndOwner = strForm.hWnd
sFilter = "Excel Workbooks (*.xls)" & Chr(0) & "*.xls" & Chr(0)
OpenFile.lpstrFilter = sFilter
OpenFile.nFilterIndex = 1
OpenFile.lpstrFile = String(257, 0)
OpenFile.nMaxFile = Len(OpenFile.lpstrFile) - 1
OpenFile.lpstrFileTitle = OpenFile.lpstrFile
OpenFile.nMaxFileTitle = OpenFile.nMaxFile
OpenFile.lpstrInitialDir = "C:\"
OpenFile.lpstrTitle = strSelect
OpenFile.flags = 0
lReturn = GetOpenFileName(OpenFile)
If lReturn <> 0 Then
LaunchCD = Trim(Left(OpenFile.lpstrFile, InStr(1,
OpenFile.lpstrFile, vbNullChar) - 1))
End If
End Function
Nov 13 '05 #5
DFS
deko wrote:
I immediately ran into a problem with the Common Dialog with Access
2000... will repost...
Never use it (or any other ActiveX controls). More likely a
difference between two PCs than having anything to do with the
Access version.


I think that's the issue - I was using ActiveX to get the dialog with
Access 2003, now I need another way. I found some code on
Microsoft's site to get a file picker, but still need code for a
folder picker. If you have code for a folder picker, that would be a
big help.


Try this:

Public Function BrowseFolder(szDialogTitle As String) As String

Dim X As Long, bi As BROWSEINFO, dwIList As Long
Dim szPath As String, wPos As Integer

With bi
.hOwner = hWndAccessApp
.lpszTitle = szDialogTitle
.ulFlags = BIF_RETURNONLYFSDIRS
End With

dwIList = SHBrowseForFolder(bi)
szPath = Space$(512)
X = SHGetPathFromIDList(ByVal dwIList, ByVal szPath)

If X Then
wPos = InStr(szPath, Chr(0))
BrowseFolder = Left$(szPath, wPos - 1)
Else
BrowseFolder = vbNullString
End If

End Function
Call it like this:

Dim strFolderName As String
strFolderName = BrowseFolder("whatever message you want")


Here's what I've got for the file picker dialog:

Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _
"GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long

Private Type OPENFILENAME
lStructSize As Long
hwndOwner As Long
hInstance As Long
lpstrFilter As String
lpstrCustomFilter As String
nMaxCustFilter As Long
nFilterIndex As Long
lpstrFile As String
nMaxFile As Long
lpstrFileTitle As String
nMaxFileTitle As Long
lpstrInitialDir As String
lpstrTitle As String
flags As Long
nFileOffset As Integer
nFileExtension As Integer
lpstrDefExt As String
lCustData As Long
lpfnHook As Long
lpTemplateName As String
End Type

Private Function LaunchCD(strForm As Form, strSelect As String) As
String Dim OpenFile As OPENFILENAME
Dim lReturn As Long
Dim sFilter As String
OpenFile.lStructSize = Len(OpenFile)
OpenFile.hwndOwner = strForm.hWnd
sFilter = "Excel Workbooks (*.xls)" & Chr(0) & "*.xls" & Chr(0)
OpenFile.lpstrFilter = sFilter
OpenFile.nFilterIndex = 1
OpenFile.lpstrFile = String(257, 0)
OpenFile.nMaxFile = Len(OpenFile.lpstrFile) - 1
OpenFile.lpstrFileTitle = OpenFile.lpstrFile
OpenFile.nMaxFileTitle = OpenFile.nMaxFile
OpenFile.lpstrInitialDir = "C:\"
OpenFile.lpstrTitle = strSelect
OpenFile.flags = 0
lReturn = GetOpenFileName(OpenFile)
If lReturn <> 0 Then
LaunchCD = Trim(Left(OpenFile.lpstrFile, InStr(1,
OpenFile.lpstrFile, vbNullChar) - 1))
End If
End Function

Nov 13 '05 #6
"bi As BROWSEINFO" produced a compile error. What library does this
reference?

DFS wrote:

deko wrote:
I immediately ran into a problem with the Common Dialog with Access
2000... will repost...

Never use it (or any other ActiveX controls). More likely a
difference between two PCs than having anything to do with the
Access version.


I think that's the issue - I was using ActiveX to get the dialog with
Access 2003, now I need another way. I found some code on
Microsoft's site to get a file picker, but still need code for a
folder picker. If you have code for a folder picker, that would be a
big help.


Try this:

Public Function BrowseFolder(szDialogTitle As String) As String

Dim X As Long, bi As BROWSEINFO, dwIList As Long
Dim szPath As String, wPos As Integer

With bi
.hOwner = hWndAccessApp
.lpszTitle = szDialogTitle
.ulFlags = BIF_RETURNONLYFSDIRS
End With

dwIList = SHBrowseForFolder(bi)
szPath = Space$(512)
X = SHGetPathFromIDList(ByVal dwIList, ByVal szPath)

If X Then
wPos = InStr(szPath, Chr(0))
BrowseFolder = Left$(szPath, wPos - 1)
Else
BrowseFolder = vbNullString
End If

End Function

Call it like this:

Dim strFolderName As String
strFolderName = BrowseFolder("whatever message you want")
Here's what I've got for the file picker dialog:

Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _
"GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long

Private Type OPENFILENAME
lStructSize As Long
hwndOwner As Long
hInstance As Long
lpstrFilter As String
lpstrCustomFilter As String
nMaxCustFilter As Long
nFilterIndex As Long
lpstrFile As String
nMaxFile As Long
lpstrFileTitle As String
nMaxFileTitle As Long
lpstrInitialDir As String
lpstrTitle As String
flags As Long
nFileOffset As Integer
nFileExtension As Integer
lpstrDefExt As String
lCustData As Long
lpfnHook As Long
lpTemplateName As String
End Type

Private Function LaunchCD(strForm As Form, strSelect As String) As
String Dim OpenFile As OPENFILENAME
Dim lReturn As Long
Dim sFilter As String
OpenFile.lStructSize = Len(OpenFile)
OpenFile.hwndOwner = strForm.hWnd
sFilter = "Excel Workbooks (*.xls)" & Chr(0) & "*.xls" & Chr(0)
OpenFile.lpstrFilter = sFilter
OpenFile.nFilterIndex = 1
OpenFile.lpstrFile = String(257, 0)
OpenFile.nMaxFile = Len(OpenFile.lpstrFile) - 1
OpenFile.lpstrFileTitle = OpenFile.lpstrFile
OpenFile.nMaxFileTitle = OpenFile.nMaxFile
OpenFile.lpstrInitialDir = "C:\"
OpenFile.lpstrTitle = strSelect
OpenFile.flags = 0
lReturn = GetOpenFileName(OpenFile)
If lReturn <> 0 Then
LaunchCD = Trim(Left(OpenFile.lpstrFile, InStr(1,
OpenFile.lpstrFile, vbNullChar) - 1))
End If
End Function

Nov 13 '05 #7
See http://www.mvps.org/access/api/api0002.htm at "The Access Web" for the
complete code.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Norman Scheinin" <no***************@boeing.com> wrote in message
news:42***************@boeing.com...
"bi As BROWSEINFO" produced a compile error. What library does this
reference?

DFS wrote:

deko wrote:
>>> I immediately ran into a problem with the Common Dialog with Access
>>> 2000... will repost...
>>
>> Never use it (or any other ActiveX controls). More likely a
>> difference between two PCs than having anything to do with the
>> Access version.
>
> I think that's the issue - I was using ActiveX to get the dialog with
> Access 2003, now I need another way. I found some code on
> Microsoft's site to get a file picker, but still need code for a
> folder picker. If you have code for a folder picker, that would be a
> big help.


Try this:

Public Function BrowseFolder(szDialogTitle As String) As String

Dim X As Long, bi As BROWSEINFO, dwIList As Long
Dim szPath As String, wPos As Integer

With bi
.hOwner = hWndAccessApp
.lpszTitle = szDialogTitle
.ulFlags = BIF_RETURNONLYFSDIRS
End With

dwIList = SHBrowseForFolder(bi)
szPath = Space$(512)
X = SHGetPathFromIDList(ByVal dwIList, ByVal szPath)

If X Then
wPos = InStr(szPath, Chr(0))
BrowseFolder = Left$(szPath, wPos - 1)
Else
BrowseFolder = vbNullString
End If

End Function

Call it like this:

Dim strFolderName As String
strFolderName = BrowseFolder("whatever message you want")
> Here's what I've got for the file picker dialog:
>
> Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _
> "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long
>
> Private Type OPENFILENAME
> lStructSize As Long
> hwndOwner As Long
> hInstance As Long
> lpstrFilter As String
> lpstrCustomFilter As String
> nMaxCustFilter As Long
> nFilterIndex As Long
> lpstrFile As String
> nMaxFile As Long
> lpstrFileTitle As String
> nMaxFileTitle As Long
> lpstrInitialDir As String
> lpstrTitle As String
> flags As Long
> nFileOffset As Integer
> nFileExtension As Integer
> lpstrDefExt As String
> lCustData As Long
> lpfnHook As Long
> lpTemplateName As String
> End Type
>
> Private Function LaunchCD(strForm As Form, strSelect As String) As
> String Dim OpenFile As OPENFILENAME
> Dim lReturn As Long
> Dim sFilter As String
> OpenFile.lStructSize = Len(OpenFile)
> OpenFile.hwndOwner = strForm.hWnd
> sFilter = "Excel Workbooks (*.xls)" & Chr(0) & "*.xls" & Chr(0)
> OpenFile.lpstrFilter = sFilter
> OpenFile.nFilterIndex = 1
> OpenFile.lpstrFile = String(257, 0)
> OpenFile.nMaxFile = Len(OpenFile.lpstrFile) - 1
> OpenFile.lpstrFileTitle = OpenFile.lpstrFile
> OpenFile.nMaxFileTitle = OpenFile.nMaxFile
> OpenFile.lpstrInitialDir = "C:\"
> OpenFile.lpstrTitle = strSelect
> OpenFile.flags = 0
> lReturn = GetOpenFileName(OpenFile)
> If lReturn <> 0 Then
> LaunchCD = Trim(Left(OpenFile.lpstrFile, InStr(1,
> OpenFile.lpstrFile, vbNullChar) - 1))
> End If
> End Function

Nov 13 '05 #8
> See http://www.mvps.org/access/api/api0002.htm at "The Access Web" for the
complete code.


Fantastic! Thanks very much.
Nov 13 '05 #9

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

Similar topics

17
by: chicha | last post by:
Hey people, I have to convert MS Access 2000 database into mysql database, the whole thing being part of this project I'm doing for one of my faculty classes. My professor somehow presumed I...
1
by: Wayne Aprato | last post by:
I have a client who is running several Access 97 databases that I have written for them. They are about to upgrade to Access 2003. Is the default file format of Access 2003 still Access 2000 the...
2
by: Jeff | last post by:
Does anyone know of any potential problems running a 2000 database with 2003? Also, what about installing all other Office products as 2003 versions but leaving Access as 2002 running a 2000...
3
by: KEMDignam | last post by:
I have upgraded my computer to Access 2003, but I have not converted my databases since all of my clients still use Access 2000. I need to create a new MDB, but Access is telling me that I will...
47
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small...
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,...
5
by: Ecohouse | last post by:
I'm using VB and an Access 2003. The db was originally created in Access 2000, but the computer had to have things reinstalled and now has Access 2003. So I was wondering if there are any...
3
by: banba_ca | last post by:
When I create a new db from the main Access window or thru Vb (set newdb = ...) I always end up with Access 2000 file format. I would like to get 2002 - 2003 file format. The reason is that when I...
3
by: NEWSGROUPS | last post by:
I am in the midst of trying to convert about 25 Access 2000 to Access 2003. The new environment consists of Office/Access 2003 and Outlook 2003. When converting the back ends I have no problems....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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: 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...

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.