G
Guest
Hello,
I have developed an application that is used in 4 different place to collect
data. Once in a while each center sends me back the data and after having
merged them all I perform some checking.
To deliver to each center the changes I make to data, I usually use another
very small db which just runs few queries through code and it's all done.
I was trying to add few coding to create also a .txt file which will show
the changes that was made to the data.
Her is the code (I'm listing just the portion where I get trouble with):
Option Compare Database
Private F As Object
Private wrkSec As Workspace
Private DBEng As Object
Private DBdaAgg As Database
Private centro As String
______________________________
Private Sub Command0_Click()
On Error GoTo HANDLER
Set fs = CreateObject("SCRIPTING.FILESYSTEMOBJECT")
Dim FirstAction As String
Dim STATUS As Boolean
Dim wrkSec As Workspace
Dim QualePath As String
Dim TBLdaAgg As DAO.Recordset
Dim TBLmaster As DAO.Recordset
Dim logStringa As String
Dim ErrorLine As Byte
Set DBEng = CreateObject("DAO.DBEngine.36")
Set F = fs.CREATETEXTFILE("C:\FARUS\LOG_20MAY2007.TXT", True)
F.writeline ("*********************************************")
F.writeline ("** UPDATER DEL 20 MAGGIO 2007 (R) **")
F.writeline ("*********************************************")
F.writeline ("procedura lanciata il: " & Now())
This ocde works perfectly on my pc while it fires an error on the line
Set F = fs.CREATETEXTFILE("C:\FARUS\LOG_20MAY2007.TXT", True)
on the user's pc. I have tested it on others pcs and it works...
What can be wrong?
I'm guessing something with referencies?
The error message is the most generic possible:
"object variable not set ..."
Any suggestion?
Thanks!
Rocco
I have developed an application that is used in 4 different place to collect
data. Once in a while each center sends me back the data and after having
merged them all I perform some checking.
To deliver to each center the changes I make to data, I usually use another
very small db which just runs few queries through code and it's all done.
I was trying to add few coding to create also a .txt file which will show
the changes that was made to the data.
Her is the code (I'm listing just the portion where I get trouble with):
Option Compare Database
Private F As Object
Private wrkSec As Workspace
Private DBEng As Object
Private DBdaAgg As Database
Private centro As String
______________________________
Private Sub Command0_Click()
On Error GoTo HANDLER
Set fs = CreateObject("SCRIPTING.FILESYSTEMOBJECT")
Dim FirstAction As String
Dim STATUS As Boolean
Dim wrkSec As Workspace
Dim QualePath As String
Dim TBLdaAgg As DAO.Recordset
Dim TBLmaster As DAO.Recordset
Dim logStringa As String
Dim ErrorLine As Byte
Set DBEng = CreateObject("DAO.DBEngine.36")
Set F = fs.CREATETEXTFILE("C:\FARUS\LOG_20MAY2007.TXT", True)
F.writeline ("*********************************************")
F.writeline ("** UPDATER DEL 20 MAGGIO 2007 (R) **")
F.writeline ("*********************************************")
F.writeline ("procedura lanciata il: " & Now())
This ocde works perfectly on my pc while it fires an error on the line
Set F = fs.CREATETEXTFILE("C:\FARUS\LOG_20MAY2007.TXT", True)
on the user's pc. I have tested it on others pcs and it works...
What can be wrong?
I'm guessing something with referencies?
The error message is the most generic possible:
"object variable not set ..."
Any suggestion?
Thanks!
Rocco