In VBA/VB6 I can call a function or a subroutine like so:
Call myFunction
I am plugging into an Access application from .Net like so:
using MSAccess = Microsoft.Office.Interop.Access.Application;
var access = new MSAccess();
access.OpenCurrentDatabase(@"C:\myDatabase.accdb");
access. //Here I can more or less type my VBA code the same way I can natively
access.CloseCurrentDatabase();
Marshal.ReleaseComObject(access);
What do I put after the dot to call myFunction via MS Access Interop?
See if Application.Run does what you want, based on the example given in the link.
EDIT: Also,
DoCmd.RunMacroshould work.