Hi all.
I have this module in the DB ACCESS.
and I write this batch file:
The idea is open the DB Access and start the function Estrai() with the batch file.
No error but the function Estrai() not start, why?
Can you help me?
kind regards
viki
I have this module in the DB ACCESS.
Code:
Function estrai()
Dim dbs As Database
Set dbs = CurrentDb
g_HostSettleTime = 15
Dim Sessions As Object
Dim System As Object
Set System = CreateObject("EX.System")
If (System Is Nothing) Then
MsgBox "Errore."
Stop
End If
Set Sessions = System.Sessions
If (Sessions Is Nothing) Then
MsgBox "Errore."
Stop
End If
Dim sess0 As Object
Set sess0 = System.ActiveSession
If (sess0 Is Nothing) Then GoTo init
System.Quit
init:
Shell ("c:\programmi\ex\session.exe")
...
Application.Quit
End Function
Code:
@echo off "C:\Programmi\Microsoft Office\OFFICE11\msaccess.exe" "D:\Inetpub\wwwroot\mdb-database\database.mdb" /cmd Estrai()
No error but the function Estrai() not start, why?
Can you help me?
kind regards
viki
Comment