Hi All,
Hope someone has a good suggestion or code example.
The brief story:
I have a database that needs to be updated from numerous other ones at month end. I have created a module that runs all of the append / delete queries and renames / deletes temporary tables. The code works fine from within VB.
What I would like to do is to automate it even more. Depending on the command line argument that I use would like to call to my module. The current code that I have for this is:
Function CheckCommandLine()
If Command = "update" Then
DoCmd.OpenModule "ModuleName"
Else
Exit Function
End If
End Function
All this does if open the DB, it does not run "ModuleName".
I have tried Run, RunCode and a couple of others to no avail. Using Autoexec macro is out of the question because it only needs to be run at certain times by certain people.
Any ideas whould be greatly appreciated.
Regards
Hope someone has a good suggestion or code example.
The brief story:
I have a database that needs to be updated from numerous other ones at month end. I have created a module that runs all of the append / delete queries and renames / deletes temporary tables. The code works fine from within VB.
What I would like to do is to automate it even more. Depending on the command line argument that I use would like to call to my module. The current code that I have for this is:
Function CheckCommandLine()
If Command = "update" Then
DoCmd.OpenModule "ModuleName"
Else
Exit Function
End If
End Function
All this does if open the DB, it does not run "ModuleName".
I have tried Run, RunCode and a couple of others to no avail. Using Autoexec macro is out of the question because it only needs to be run at certain times by certain people.
Any ideas whould be greatly appreciated.
Regards