Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"