Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default open access from excel ?

Hello,

What is the code (if possible) to open access application from excel ?

thank you


--
תודה רבה
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default open access from excel ?

Hi ?

Try this to open C:\OrderDatabase.mdb

Sub test()
Dim ac As Object
On Error Resume Next
Set ac = GetObject(, "Access.Application")
If ac Is Nothing Then
Set ac = GetObject("", "Access.Application")
ac.OpenCurrentDatabase "C:\OrderDatabase.mdb"
ac.UserControl = True
End If
AppActivate "Microsoft Access"
End Sub

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"יריב החביב" wrote in message ...
Hello,

What is the code (if possible) to open access application from excel ?

thank you


--
תודה רבה


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default open access from excel ?

Thank YOU
--
תודה רבה


"Ron de Bruin" wrote:

Hi ?

Try this to open C:\OrderDatabase.mdb

Sub test()
Dim ac As Object
On Error Resume Next
Set ac = GetObject(, "Access.Application")
If ac Is Nothing Then
Set ac = GetObject("", "Access.Application")
ac.OpenCurrentDatabase "C:\OrderDatabase.mdb"
ac.UserControl = True
End If
AppActivate "Microsoft Access"
End Sub

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"יריב החביב" wrote in message ...
Hello,

What is the code (if possible) to open access application from excel ?

thank you


--
תודה רבה



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to open a secured Access db from Excel erick-flores Excel Discussion (Misc queries) 8 March 19th 08 06:51 PM
EXCEL TRIES TO OPEN IN ACCESS cfarns Excel Discussion (Misc queries) 2 September 20th 07 01:50 AM
Excel won't open - pasting from Access Rebecca Excel Discussion (Misc queries) 0 May 25th 05 12:15 AM
Excel cannot open Access MDB Neva Excel Discussion (Misc queries) 0 April 4th 05 08:35 PM
How can I open an Access adp file from excel? gcordoba Excel Discussion (Misc queries) 0 February 25th 05 04:37 PM


All times are GMT +1. The time now is 08:31 AM.

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"