lynchoftawa
New Member
- Joined
- Mar 27, 2006
- Messages
- 7
Hi All
I think this is my first post, so I am expecting big things. Actually the boss has asked me to fix this problem, I am sure he has more faith in me than I do in myself, so I would hate to let him down.
We, and I say losely we, have built a process where correspondence is sent to the client when a xml or pdf file exists in a specified folder. The process uses a combination of data from the xml and data from a static table in the workbook.
What I need to create in a seperate worksheet is a error log that appends data based on the information provided, or not as the case exists.
The original process was built in MS Access, adding error information to a table called 'Log', what I need to do is transport that thinking to Excel. The original code that was used in MS Access is as follows;
Docmd.RunSQL ("INSERT INTO Log (LogTimeDate, Recipient, Address, TalismanAccount, Type) SELECT Now(), 'Processing Error', 'No static data entry for this account and Correspondence type (and no default settings found) - update static data' , '" & strTalismanAccount & "','" & strCorresType & " ' ; ")
There is also the need for an ErrorID in the log. This would of originally been taken care of with the AutoNumber in Access, no such luxury in MS Excel.
If I need to add further information, please let me know.
Thanks in advance
I think this is my first post, so I am expecting big things. Actually the boss has asked me to fix this problem, I am sure he has more faith in me than I do in myself, so I would hate to let him down.
We, and I say losely we, have built a process where correspondence is sent to the client when a xml or pdf file exists in a specified folder. The process uses a combination of data from the xml and data from a static table in the workbook.
What I need to create in a seperate worksheet is a error log that appends data based on the information provided, or not as the case exists.
The original process was built in MS Access, adding error information to a table called 'Log', what I need to do is transport that thinking to Excel. The original code that was used in MS Access is as follows;
Docmd.RunSQL ("INSERT INTO Log (LogTimeDate, Recipient, Address, TalismanAccount, Type) SELECT Now(), 'Processing Error', 'No static data entry for this account and Correspondence type (and no default settings found) - update static data' , '" & strTalismanAccount & "','" & strCorresType & " ' ; ")
There is also the need for an ErrorID in the log. This would of originally been taken care of with the AutoNumber in Access, no such luxury in MS Excel.
If I need to add further information, please let me know.
Thanks in advance