ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Is it possible? (https://www.excelbanter.com/excel-programming/340434-possible.html)

Dennis Cheung

Is it possible?
 
I would try to add a macro to direct the program to the form in MS Access, is
it possible? Can someone help to write the code if it is possible? If not,
any suggestions?
--
Dennis Cheung

theDude[_23_]

Is it possible?
 

Try this (change code in *BOLD* below to your references):

Code
-------------------
Sub testMSAccess()
Dim appAccess As Object
' Create instance of Access Application object...
Set appAccess = CreateObject("Access.Application")
' Make the Access application visible...
appAccess.Visible = True
' Open Access database...
appAccess.OpenCurrentDatabase "*C:\your directory\YourDB*.mdb", False
' Open form in Access database...
appAccess.DoCmd.OpenForm "*YourForm*", acNormal

'...your code to manipulate Access form goes here...

' Release the Access application...
Set appAccess = Nothing
End Su
-------------------

Hope this helps,
theDud

--
theDud
-----------------------------------------------------------------------
theDude's Profile: http://www.excelforum.com/member.php...fo&userid=1655
View this thread: http://www.excelforum.com/showthread.php?threadid=46869



All times are GMT +1. The time now is 12:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com