G
George Aslanis
Hello,
Has anyone seen source code which will convert an MSAccess app to VB6?
Thanks,
George
Has anyone seen source code which will convert an MSAccess app to VB6?
Thanks,
George
"Billy Yao [MSFT]" said:Hi George,
Thank you for using MSDN Newsgroup! It's my pleasure to assist you with this issue.
I think Doug has pointed out ways to convert Access to VB6 but you should be aware that the
structural and object model differences are sufficiently great that no product can convert a
"good Access database" to a "good VB application".
We have had reports that third-party converters are a significant assist in such a conversion,
but there is still a great deal of manual work to be done. So I agree with Doug that it's maybe
better to redesign the Access Objects in VB rather than convert them just using a tool.
If you'd really like to, you can try Greenwich Financial Modeling, Inc. at http://www.GFMinc.com
who has a program AccessToVB. Below are a few quotes from their Readme.txt you might
find helpful for you:
======================
AccessToVB requires the following files be installed and registered for proper functionality:
EITHER Microsoft Visual Basic 4.0 Professional or Enterprise Edition
OR Microsoft Visual Basic 5.0 Professional or Enterprise Edition
Microsoft Access 97
EITHER the Sheridan Data Widgets 2.0
OR the GreenTree DataList 1.0 OCX controls
OR the Sheridan Data Widgets 3.0
None of the above programs are included with Access97ToVB. If you are converting paged
forms or tabbed forms into a VB 5 project, you must have VB 5 Service Pack 2 or later.
If you have the Sheridan Data Widgets 2.0 controls, you must have at least version 2.0b (Build
186). If you have the GreenTree DataList controls, you must have version 1.0d or higher. At
the time of this writing, the current version of the Sheridan control is 2.0c (Build 198), and the
current version of the GreenTree control is 1.0h (build 39).
---------------------------------
Part 1 - About AccessToVB
----------------------------------
AccessToVB is the only product currently available designed to convert programs written in
Microsoft Access 97 to equivalent Microsoft Visual Basic 4.0 or Microsoft Visual Basic 5.0
programs. AccessToVB analyzes the database, and then converts the forms, macros,
modules, and code behind forms to Visual Basic.
There are a number of user selectable options, including which forms and modules to convert,
the choice of custom controls supported, and the ability to convert the project to an MDI
project. All standard Access controls are converted, including the new Tab control.
Unlike competing programs, AccessToVB also converts: secured databases, menus,
macros, toolbars, and paged forms. AccessToVB also converts multicolumn list boxes and
combo boxes, in both bound and Value List mode. Another serious shortcoming of competing
products is that the code is converted, but not translated. AccessToVB actually translates
Access syntax into Visual Basic sytax (Yes, Docmd.Openform "Employees", acDialog does
become Employees.show vbModal!)
If you have the evaluation version of AccessToVB, you may purchase the full version by
calling (212) 480-8217. The price is $395, plus shipping.
======================
Good Luck George! If there is anything more I can still do to assist you, please don't hesitate
to let me know. Thanks again for using MSDN Newsgroup!
Best regards,
Billy Yao
Microsoft Online Support
Van T. Dinh said:... and beware that the note mentioned VB4 or VB5 so the conversion software
is aimed at Access97 or earlier.
Since Access 2K uses VBA 6 (equivalent of stand-alone VB6), it is likely
that anything new in Access2K / VBA6 won't be converted correctly.
--
HTH
Van T. Dinh
MVP (Access)
should"Billy Yao [MSFT]" said:Hi George,
Thank you for using MSDN Newsgroup! It's my pleasure to assist you with this issue.
I think Doug has pointed out ways to convert Access to VB6 but you
be aware that thewithstructural and object model differences are sufficiently great that no product can convert a
"good Access database" to a "good VB application".
We have had reports that third-party converters are a significant assist in such a conversion,
but there is still a great deal of manual work to be done. So I agree
Doug that it's maybejustbetter to redesign the Access Objects in VB rather than convert them
using a tool.atIf you'd really like to, you can try Greenwich Financial Modeling, Inc.Readme.txthttp://www.GFMinc.com
who has a program AccessToVB. Below are a few quotes from their
you mightPackfind helpful for you:
======================
AccessToVB requires the following files be installed and registered for proper functionality:
EITHER Microsoft Visual Basic 4.0 Professional or Enterprise Edition
OR Microsoft Visual Basic 5.0 Professional or Enterprise Edition
Microsoft Access 97
EITHER the Sheridan Data Widgets 2.0
OR the GreenTree DataList 1.0 OCX controls
OR the Sheridan Data Widgets 3.0
None of the above programs are included with Access97ToVB. If you are converting paged
forms or tabbed forms into a VB 5 project, you must have VB 5 Service
2 or later.leastIf you have the Sheridan Data Widgets 2.0 controls, you must have at
version 2.0b (Buildversion186). If you have the GreenTree DataList controls, you must have
1.0d or higher. AtMicrosoftthe time of this writing, the current version of the Sheridan control is 2.0c (Build 198), and the
current version of the GreenTree control is 1.0h (build 39).
Visual Basic 5.0forms,programs. AccessToVB analyzes the database, and then converts theTabmacros,
modules, and code behind forms to Visual Basic.
There are a number of user selectable options, including which forms and modules to convert,
the choice of custom controls supported, and the ability to convert the project to an MDI
project. All standard Access controls are converted, including the newyou,control.
Unlike competing programs, AccessToVB also converts: secured databases, menus,
macros, toolbars, and paged forms. AccessToVB also converts multicolumn list boxes and
combo boxes, in both bound and Value List mode. Another serious shortcoming of competing
products is that the code is converted, but not translated. AccessToVB actually translates
Access syntax into Visual Basic sytax (Yes, Docmd.Openform "Employees", acDialog does
become Employees.show vbModal!)
If you have the evaluation version of AccessToVB, you may purchase the full version by
calling (212) 480-8217. The price is $395, plus shipping.
======================
Good Luck George! If there is anything more I can still do to assist
please don't hesitateto let me know. Thanks again for using MSDN Newsgroup!
Best regards,
Billy Yao
Microsoft Online Support
George Aslanis said:We looked at some 3rd party offerings, but were not impressed with the
generated code. At this point we are just looking for source code (vb/vba)
to enumerate through the access collections to retrieve all of the control
types and relative position info used in each form/report. This will enable
us to programmatically dump to text files all of the form/report objects.
With a simple copy/paste function to obtain the module code, we will have a
good starting point. Far better than having to recreate everything from
scratch.
Inc.Van T. Dinh said:... and beware that the note mentioned VB4 or VB5 so the conversion software
is aimed at Access97 or earlier.
Since Access 2K uses VBA 6 (equivalent of stand-alone VB6), it is likely
that anything new in Access2K / VBA6 won't be converted correctly.
--
HTH
Van T. Dinh
MVP (Access)
with"Billy Yao [MSFT]" said:Hi George,
Thank you for using MSDN Newsgroup! It's my pleasure to assist you
this issue.shouldI think Doug has pointed out ways to convert Access to VB6 but you
be aware that theassiststructural and object model differences are sufficiently great that no product can convert a
"good Access database" to a "good VB application".
We have had reports that third-party converters are a significant
in such a conversion,withbut there is still a great deal of manual work to be done. So I agree
Doug that it's maybejustbetter to redesign the Access Objects in VB rather than convert them
using a tool.If you'd really like to, you can try Greenwich Financial Modeling,at Readme.txt
you might for
proper functionality: Pack
2 or later. least
version 2.0b (Build version
1.0d or higher. At is
2.0c (Build 198), and the Microsoft
Visual Basic 5.0 forms, and
modules to convert, the
project to an MDI Tab databases,
menus, multicolumn
list boxes and "Employees",
acDialog does you,
please don't hesitate
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.