We have here a command line utility which converts files created in unix to dos format.
When importing files from unix into SQL I use the Shell function to convert them with the utility before the VBA code which loads in the data executes. I realise Shell is asynchronous and have coded in longer and longer wait periods, but sometimes the VBA runs before the shell command is finished and I only get part of the import data.
I should probably set up a solution using a DTS, but at the moment I just want a quick fix to make it work as is.
Any suggestions?
Thanks
When importing files from unix into SQL I use the Shell function to convert them with the utility before the VBA code which loads in the data executes. I realise Shell is asynchronous and have coded in longer and longer wait periods, but sometimes the VBA runs before the shell command is finished and I only get part of the import data.
I should probably set up a solution using a DTS, but at the moment I just want a quick fix to make it work as is.
Any suggestions?
Thanks