By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,301 Members | 1,741 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,301 IT Pros & Developers. It's quick & easy.

Calling an access Macro from a VB.NET application - Very Urgent

P: n/a
(Type your message here)

Any help is appreciated.

I have a situation wherein i need to compact access db after somebusiness logic through VB.NET.I've written a function in VBA tocompact the database and i am calling that function in AccessMacro, and if i run that access macro in the backend, itsworking fine.But when i tried to call that access macro fromVB.NET code,i'm not getting any errors, but that macro is notworking. I'm calling that access macro likeaccess.docmd.runmacro "MACRONAME". How to call an access macroor a VBA function in VB.NET code?.

Thanks in advance.
From: Sen K

Posted by a user from .NET 247 (

Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Hi Sen,

Did you already look here?;en-us;306287

I think when this goes this is much easier.

I hope this helps?

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.