I have created a LabVIEW program that launches MS Access. I would like to be able to automatically open different MS Access forms in the same database depending on conditions in the program. How do I tell MS Access to open a form from within LabVIEW?
I haven't personally done this but I would suspect that there is an ActiveX property somewhere that would allow you to do this. I would poke around MS Access' help and MS' website for any info you can find on ActiveX stuff in Access.
If you call Access by command line: create 2 macros to display 2 forms in Access, then use "c:\prog... ...\msaccess.exe" /x macro1|macro2 in Shortcut or bath file Other way is /cmd as last parameter in command line and form as startup in Access project
As ActiveX Object in LabView: Open(Access._Application).Forms.Item(Form1).Visible = true ... Ofcource OpenDB is also required!