473,597 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

Jun 18 '07 #1
5 4758
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" <cp*********@ho tmail.coma écrit dans le message de
news: 46************* **********@news spool4.arcor-online.net...
>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

Jun 18 '07 #2
On Jun 18, 11:30 am, cpet_mag...@hot mail.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.

Jun 18 '07 #3
On Jun 18, 4:30 pm, cpet_mag...@hot mail.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

Jun 18 '07 #4
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" <cp*********@ho tmail.comschree f in bericht
news:46******** *************** @newsspool4.arc or-online.net...
>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

Jun 18 '07 #5
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.

Jun 18 '07 #6

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

Similar topics

31
1796
by: Michael Nicol | last post by:
Hey all Our company recently started using .net and started in VB.NET. We've since changed to c#, but has some code already written in VB.NET. I'm looking for a converter that will just take vb.net and convert it into farely nice c#. I've found one or two, but they do some strange stuff and was wondering if there is a Microsoft converter or one generally accepted as being good by the community?
4
1963
by: Jason Huang | last post by:
Hi, I would like to convert the following Visual Basic code to C#, does someone has free tool to convert it? Function PreConnect() As Boolean Dim strDSN$, strUidPwd$, strDatabase$, strConnect$
72
3437
by: Robin Tucker | last post by:
I need to find some documents/research for my manager about VB.NET v C# use. I've noticed that there are many more people using C# than VB.NET, that there seem to be more job vacancies specifying C# and projects written with it. I would basically like any links you might have to articles with non-anecdotal evidence for usage patterns, if there are any. Thanks,
1
15866
by: Brian Conklin | last post by:
Hello Eneryone, I am having a problem. I have written a little app that will take a text "pipe" delimited file and place all of the values in to an Excel spreadsheet. It works great on any of my XP Pro machines. When I install the app on a Win2K Pro machine, I get the following error message: ************** Exception Text ************** System.Runtime.InteropServices.COMException (0x80020008): Bad variable type. at...
38
1719
by: Arjang | last post by:
http://www.codeproject.com/useritems/CSharpVersusVB.asp
0
1718
by: Nonee | last post by:
Hello- I have a form with the mediaplayer referenced to play mp3's and avi's and I believe that is what is causing the problem. I am not sure, but I am hoping. Anyway, I "published" the vb.net app and moved it to another computer and I get the following error msg when I load the form with the mediaplayer on it. I upgraded this project from a standard vb app to the .net version (vb express anyway) and that is when the problem arose. ...
0
1943
by: ChopStickr | last post by:
I have a custom control that is embedded (using the object tag) in an html document. The control takes a path to a local client ini file. Reads the file. Executes the program specified in the ini on the client's PC. After the program has ended the control looks in a client side temp folder (specified by the ini file) for an image created by the executed program. If the image is there, then the control moves the file to a public folder...
0
779
by: NeenaTM | last post by:
hai I have a application done in MS Access Vb forms, modules etc. Is there any methode to convert this VBA code o VB.Net without much manula effort. If we can pls let me know hw it can be done. Regards Neena
47
2305
by: Nathan Sokalski | last post by:
VB.NET has a function, Asc(), that gets the Ascii value of a character. I am attempting to find an equivelant function for C#. Can somebody help me here? -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
0
7965
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8271
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8380
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8031
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8258
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
3881
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3923
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2399
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1493
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.