473,387 Members | 1,942 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,387 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 1250
Why not just do it properly.

Use ADO.Net from your C# program to do the import.

At the moment you're just digging yourself a deeper whole.

If you really insist on doing this wrong then you'll need to look up how to
create public classes in Access so that you can then create publicly
available events for you to sink in C#.

--

Terry Kreft
<ke*******@yahoo.com> wrote in message
news:11**********************@r44g2000cwb.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
To handle events from Access you will have to use delegates in your C#
program.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
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...
10
by: sandraz444 | last post by:
I have an expression in the query under my form to autofill the date under a certain condition but it wont write to the underlying table?? The date shows in the form but not the table. Does anyone...
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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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
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,...

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.