473,398 Members | 2,403 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,398 software developers and data experts.

How can I write C# code that can pick up the custom events that occur in it's Access server?

I needed to import large CSV files into Access, when requested by a
command in a .Net interface.

Because Access does not have a bulk insert command, and I already have
vba macros in Access that do the import, I simply called the vba macro
from .Net using COM.

Each time a csv file is successfully imported, I would like to raise a
custom event in Access that the .Net interface can handle.

The situation is complicated, by the Access database that the csv files
are imported to is a copy of a stadard template Access file, this
cahnges the GUID Id of the Access server everytime the program runs.

How can I write C# code that can pick up the custom events that occur
in it's Access server?

Thanks in advance if anyone can help.

May 30 '06 #1
2 1648
Why not just use the Primary Interop Assemblies for Office, and then
hook up to the events that it exposes?

Also, you really shouldn't need to use access to do this (or the macros,
for that matter).

You should just use the Data Transformation Services to do what you
wish. It will transform data from one format to another (including CSV to
MDB) out of the box.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<ke*******@yahoo.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
I needed to import large CSV files into Access, when requested by a
command in a .Net interface.

Because Access does not have a bulk insert command, and I already have
vba macros in Access that do the import, I simply called the vba macro
from .Net using COM.

Each time a csv file is successfully imported, I would like to raise a
custom event in Access that the .Net interface can handle.

The situation is complicated, by the Access database that the csv files
are imported to is a copy of a stadard template Access file, this
cahnges the GUID Id of the Access server everytime the program runs.

How can I write C# code that can pick up the custom events that occur
in it's Access server?

Thanks in advance if anyone can help.

May 30 '06 #2
Have you copy and paste your macro code into VB.NET using VS 2005 or VS 2003
and see you can compile? Assuming that you might need to change a bit of
your VBA code.

Post your code here will be nice.

I am yet to confrim whether DTS come without SQL Server.

When you said "Access Server" is not that appropiate. Microsoft only has a
database Server, MS SQL Server.

chanmm

<ke*******@yahoo.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
I needed to import large CSV files into Access, when requested by a
command in a .Net interface.

Because Access does not have a bulk insert command, and I already have
vba macros in Access that do the import, I simply called the vba macro
from .Net using COM.

Each time a csv file is successfully imported, I would like to raise a
custom event in Access that the .Net interface can handle.

The situation is complicated, by the Access database that the csv files
are imported to is a copy of a stadard template Access file, this
cahnges the GUID Id of the Access server everytime the program runs.

How can I write C# code that can pick up the custom events that occur
in it's Access server?

Thanks in advance if anyone can help.

May 30 '06 #3

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

Similar topics

19
by: Vinod | last post by:
Hi, I have got a peculiar requirement. I want to distinquish between the color codes. I have got two text fields and i will enter the color codes there. The first text field will have ...
2
by: wobbles | last post by:
Hi Everyone (Happy New Year!), If I have clients that want to tell the server that something has happened, what would be the difference between "remoting events" and using an asynchronous (one...
10
by: CSDunn | last post by:
Hello, I'm having a problem with ASP.NET using IIS 5.1 on a Windows XP Pro machine. ASP.NET will not process the following code: ******************************* <html> <head> </head> <body>...
5
by: | last post by:
I am wondering what the best method of attaching custom Events to custom WebUserControls are. I cannot seem to find the proper terminology to expand my research. Basicallly I have a custom user...
2
by: keithgell | last post by:
I needed to import large CSV files into Access, when requested by a command in a .Net interface. Because Access does not have a bulk insert command, and I already have vba macros in Access that...
7
by: Rob R. Ainscough | last post by:
I'm having difficulty writing anything to the web servers event log from my web app located on that server. Putting this in my web apps web.config did NOT help - immediate causes and error in my...
0
by: Eniac | last post by:
Hello, I've started using Enterprise Library 2.0 recently and I've encountered a problem that seems to be ... well... undocumented :) Basically, when I set a Trace Listener (formatted event...
1
by: Ryan | last post by:
I am trying to log events to SQL Server instead of the computers event log, but, although I get no errors, I have no luck. The webevents_events table is empty. I have a custom event that I am...
2
by: Michal Valent | last post by:
I would like to fire some custom server control event before Page_Load event like this (from the trace of an aspx page) : Trace Information Category Message From First(s) From Last(s) aspx.page...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.