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

VB.Net with MS Access

I am using VBA with MS Access. Is it possible to using VB.Net on Access? Any useful links explaining this?
Nov 20 '05 #1
7 2065
"WC Lo" <an*******@discussions.microsoft.com> schrieb
I am using VBA with MS Access. Is it possible to using VB.Net on
Access? Any useful links explaining this?

Depends on what parts of Access you are talking about. In general, VB.Net
can access database by ADO.Net and an OLEDB provider, in this case the Jet
provider, for accessing the database. This does /not/ include the modules,
forms and reports stuff that the Access application makes use of. The 2nd
way is that you can use COM components (by COM interop) from VB.Net. You'd
have to set a reference to the Access automation library. The automation
model, documented in the Access documentation, can then be used.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
I am not sure if I really understand you. Currently Access has forms and reports and can access either Jet or SQL database. Within Access forms or reports, I can write VBA codes with events or modules. My question is, is it possible to use VB.Net instead of VBA inside forms or reports?
Nov 20 '05 #3
"WC Lo" <an*******@discussions.microsoft.com> schrieb
I am not sure if I really understand you. Currently Access has forms
and reports and can access either Jet or SQL database. Within Access
forms or reports, I can write VBA codes with events or modules. My
question is, is it possible to use VB.Net instead of VBA inside forms
or reports?


Now I am also not sure if I really understand you. Do you want to access
Access/Access database from a VB.Net application or the other way round? I
guess, in VBA, within Access, you can reference COM components. Yes, it is
possible to expose .Net assemblies via COM interop:

Interop chapters:
http://msdn.microsoft.com/library/en...anagedcode.asp

Especially sub topic "Exposing .NET Framework Components to COM"

And:
http://msdn.microsoft.com/library/en...sicVisualC.asp

Does this help? More Interop: microsoft.public.dotnet.framework.interop

--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4
Hi WC,

In addition to Armin

(I had it still in my clipboard from my previous answer)

Office
http://support.microsoft.com/default...b;EN-US;311452

http://msdn.microsoft.com/office/

Pia Download
http://www.microsoft.com/downloads/d...displaylang=en
Cor
Nov 20 '05 #5
Hi WC,

I think not, I think that those are more questions for an office developer
newsgroup.

microsoft.public.office.developer (there are more)

The link I was sending you was to integrate office in VB.net and not in the
opposite way as you are in my idea asking for.

Cor
Thanks Armin and Cor. I am not so sure that we really fully understand

each other. Anyway very appreciated of your information. May be I explain
a bit more. In Access when I bulid a form, there are events and I can write
VBA codes in the event procedure. My question is, instead of VBA, can I
write VB.Net codes in the event procedure? If so, how to reference to
VB.NET library in Access?

Nov 20 '05 #6
On Wed, 12 May 2004 04:21:04 -0700, "WC Lo" <an*******@discussions.microsoft.com> wrote:

¤ I am using VBA with MS Access. Is it possible to using VB.Net on Access? Any useful links explaining this?

This is about as close as .NET comes to Microsoft Office for the time being:

Introducing Microsoft Visual Studio Tools for the Microsoft Office System
http://msdn.microsoft.com/vstudio/of...ficetools.aspx

Microsoft Office has not been .NETified yet but likely will be in a future version.
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #7
The KB Article "HOW TO: Automate Microsoft Access From Visual Basic .NET"
may be helpful. See it at:

http://support.microsoft.com/default...5BLN%5D;317113

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"Paul Clement" <Us***********************@swspectrum.com> wrote in message
news:q8********************************@4ax.com...
On Wed, 12 May 2004 04:21:04 -0700, "WC Lo" <an*******@discussions.microsoft.com> wrote:
¤ I am using VBA with MS Access. Is it possible to using VB.Net on Access? Any useful links explaining this?
This is about as close as .NET comes to Microsoft Office for the time being:
Introducing Microsoft Visual Studio Tools for the Microsoft Office System
http://msdn.microsoft.com/vstudio/of...ficetools.aspx

Microsoft Office has not been .NETified yet but likely will be in a future version.

Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)

Nov 20 '05 #8

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

Similar topics

63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
1
by: Dave | last post by:
Hello NG, Regarding access-declarations and member using-declarations as used to change the access level of an inherited base member... Two things need to be considered when determining an...
13
by: Simon Bailey | last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have a very simplified knowledge of databases overall. I would very much appreciate a (simplifed) message explaining the advantages...
0
by: Frederick Noronha \(FN\) | last post by:
---------- Forwarded message ---------- Solutions to Everyday User Interface and Programming Problems O'Reilly Releases "Access Cookbook, Second Edition" Sebastopol, CA--Neither reference book...
20
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
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. ......
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...
37
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.