PC Review


Reply
Thread Tools Rate Thread

Can I somehow convert a VB(A) Access program into VisualBasic .NET program ?

 
 
Camille Petersen
Guest
Posts: n/a
 
      18th Jun 2007
I have a rather old VisualBasic program which is included inside an Access *.mdb database.

So I guess it is an VisualBasic and not and VBA program.

Can I somehow automatically convert it into a VisualBasic program outside of Access
which is working on base of .NET ?

If yes: How do I do it ?

If no: Is there way of at least let me automatically convert it with a
minimum of additional manual changes/interventions?

Camille

 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      18th Jun 2007
This is a Visual Basic for Applications program as it is inside an Access
DB.

Depending on what it does it may not be that easy (in particular if it uses
Access non db features such as opening forms etc...). Any compelling reason
for doing this ?

---
Patrice

"Camille Petersen" <(E-Mail Removed)> a écrit dans le message de
news: 4676a530$0$10192$(E-Mail Removed)...
>I have a rather old VisualBasic program which is included inside an Access
>*.mdb database.
>
> So I guess it is an VisualBasic and not and VBA program.
>
> Can I somehow automatically convert it into a VisualBasic program outside
> of Access
> which is working on base of .NET ?
>
> If yes: How do I do it ?
>
> If no: Is there way of at least let me automatically convert it with a
> minimum of additional manual changes/interventions?
>
> Camille
>



 
Reply With Quote
 
zacks@construction-imaging.com
Guest
Posts: n/a
 
      18th Jun 2007
On Jun 18, 11:30 am, cpet_mag...@hotmail.com (Camille Petersen) wrote:
> I have a rather old VisualBasic program which is included inside an Access *.mdb database.
>
> So I guess it is an VisualBasic and not and VBA program.
>
> Can I somehow automatically convert it into a VisualBasic program outside of Access
> which is working on base of .NET ?
>
> If yes: How do I do it ?
>
> If no: Is there way of at least let me automatically convert it with a
> minimum of additional manual changes/interventions?


I know of no tool to convert VBA to VB.NET, but then I have never
looked for one. If on exists, Google should turn it up eventually.

But as another responder implies, the conversion would depend on how
complex the VBA appliction is. I recently converted a VBA application
I had written for personal use to VB.NET and it really wasn't too
hard. But then, it had no real user interface, it was invoked with a
macro and simply created a structure of HTML files based on the
content of a few tables. When I re-wrote in VB.NET I added a user
interface and converted the Access table structure to an XML file
instead. The whole process took me the better part of a Saturday. Of
course, the more experiance you have with VB.NET the better.

 
Reply With Quote
 
dloring666@gmail.com
Guest
Posts: n/a
 
      18th Jun 2007
On Jun 18, 4:30 pm, cpet_mag...@hotmail.com (Camille Petersen) wrote:
> I have a rather old VisualBasic program which is included inside an Access *.mdb database.
>
> So I guess it is an VisualBasic and not and VBA program.
>
> Can I somehow automatically convert it into a VisualBasic program outside of Access
> which is working on base of .NET ?
>
> If yes: How do I do it ?
>
> If no: Is there way of at least let me automatically convert it with a
> minimum of additional manual changes/interventions?
>
> Camille


Hi Camille,

VB inside MS Access is VBA (Visual Basic for Applications). Whether
you can 'translate' it or not will depend entirely upon how much the
code relies upon 'Access' features. I have just spent a couple of
months re-writing an Access front end into VB.Net and it is not a
simple task.

If you extract the VBA code into a .bas (or .cls) module and join
those together as a .vbp (Visual Basic 6) project, you may be able to
use the conversion by opening the .vbp file .NET, other wise you can
try doing small parts at a time using the in-line converter.

Because VBA code, whether in Access or Excel, relies fairly heavily on
built in functions of the host program, I would not expect to get
anything like a clean conversion. Depending on the size of the
project, you may be better advised to re-write from scratch.

David

 
Reply With Quote
 
Michel Posseth [MCP]
Guest
Posts: n/a
 
      18th Jun 2007
AFAIK the answer is no ,,,

But it should be pretty easy to rewrite the program to a VB.Net desktop
application for a skilled VB.Net progger

regards

Michel Posseth [MCP]


"Camille Petersen" <(E-Mail Removed)> schreef in bericht
news:4676a530$0$10192$(E-Mail Removed)...
>I have a rather old VisualBasic program which is included inside an Access
>*.mdb database.
>
> So I guess it is an VisualBasic and not and VBA program.
>
> Can I somehow automatically convert it into a VisualBasic program outside
> of Access
> which is working on base of .NET ?
>
> If yes: How do I do it ?
>
> If no: Is there way of at least let me automatically convert it with a
> minimum of additional manual changes/interventions?
>
> Camille
>



 
Reply With Quote
 
Paul
Guest
Posts: n/a
 
      18th Jun 2007
Camille,

I did this. There are multiple programs you can purchase that say it
can convert VBA to VB.NET. Some sort of work. I had to convert 12
Access apps (about 2000 forms, 3500 queries and 2000 reports) to
VB.NET. The purchased programs we tried were not good enough. So I
wrote my own conversion program. But it sounds like your Access app
is not too large and so it would probably easier just to rewrite it in
VB.NET rather than try to convert it.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert MS Access database into a stand-alone program =?Utf-8?B?TWFyaXh4ZQ==?= Microsoft Access 2 8th Jun 2006 12:02 PM
Which software do I need to program VisualBasic ? Frank Callone Microsoft VB .NET 8 5th Apr 2006 11:36 PM
Convert Access into other developer program Collegue Microsoft Access Forms 1 7th May 2004 05:54 AM
Convert Access into other deeveloper program Collegue Microsoft Access External Data 0 6th May 2004 08:11 AM
Convert an Access program to Excel David Saylor Microsoft Excel Misc 1 12th Oct 2003 10:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 PM.