Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Run Access Command

Can anyone help me out, please?
I can't get this to work:

from in excel i need to run a command on some access form
after the command starts to run I need to wait 6 minutes

Thx
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Run Access Command

assuming you have the command button on that form in Access and that this is
the only way to get results

watch the linewrap on this. all text between the dashes is a single line
-----
getobject("C:\MyPath\MyDB.mdb").forms("frmMyForm") .cmdMyCommandButton_Click
-----

it will wait until the procedure on that form completes
that should get you started

maybe if you gave more detail about what you are trying to do other options
could be given

hth

"Franky" wrote:

Can anyone help me out, please?
I can't get this to work:

from in excel i need to run a command on some access form
after the command starts to run I need to wait 6 minutes

Thx



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Run Access Command

Hi, thx for the answer. I need to open that form and click on the command
button. Then a lot of code will be processed. I have to do it from in excel.

I tried your solution but it isn't working


"HatesIT" wrote:

assuming you have the command button on that form in Access and that this is
the only way to get results

watch the linewrap on this. all text between the dashes is a single line
-----
getobject("C:\MyPath\MyDB.mdb").forms("frmMyForm") .cmdMyCommandButton_Click
-----

it will wait until the procedure on that form completes
that should get you started

maybe if you gave more detail about what you are trying to do other options
could be given

hth

"Franky" wrote:

Can anyone help me out, please?
I can't get this to work:

from in excel i need to run a command on some access form
after the command starts to run I need to wait 6 minutes

Thx



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Run Access Command

problem solved:

Dim AccApp As Object
Dim AccPath As String

AccPath = "c:\test.mdb"
Set AccApp = CreateObject("Access.Application")

AccApp.Visible = False
AccApp.OpenCurrentDatabase AccPath
AccApp.DoCmd.OpenForm "form1"
AccApp.Forms("form1").Command0_Click


"Franky" wrote:

Can anyone help me out, please?
I can't get this to work:

from in excel i need to run a command on some access form
after the command starts to run I need to wait 6 minutes

Thx

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Run Access Command

Yes, my solution assumed the database and form was opened

I would suggest moving all the code to excel OR access. Why have 2 apps hung
while the procedure completes?

good luck!

"Franky" wrote:

Hi, thx for the answer. I need to open that form and click on the command
button. Then a lot of code will be processed. I have to do it from in excel.

I tried your solution but it isn't working


"HatesIT" wrote:

assuming you have the command button on that form in Access and that this is
the only way to get results

watch the linewrap on this. all text between the dashes is a single line
-----
getobject("C:\MyPath\MyDB.mdb").forms("frmMyForm") .cmdMyCommandButton_Click
-----

it will wait until the procedure on that form completes
that should get you started

maybe if you gave more detail about what you are trying to do other options
could be given

hth

"Franky" wrote:

Can anyone help me out, please?
I can't get this to work:

from in excel i need to run a command on some access form
after the command starts to run I need to wait 6 minutes

Thx



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
Using SQL command to access Excel Parrot Excel Programming 4 March 4th 09 05:08 AM
Access command from Excel JT Excel Programming 1 November 19th 08 02:48 PM
Add Command to Quick Access Toolbar Chad Excel Discussion (Misc queries) 5 October 29th 08 06:45 PM
vb xls command button access key RCranston Excel Programming 2 March 29th 07 03:04 PM
Access a built-In command? MacroWeasel Excel Programming 0 August 1st 03 04:21 PM


All times are GMT +1. The time now is 09:05 PM.

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

About Us

"It's about Microsoft Excel"