A2K is definitely capable of handling this. I have a third alternative
to offer though, which is basically to import the .csv file without
linking. You will need to do a manual import once so you create and save
an Import Sec, then you can use that in a TransferText method in VBA.
The "construction" of the .csv file name to import is very easy,
something like:
vImportFile = "QOR_DAILY_" & Format(Date, "mmddyyyy") & ".csv"
HTH,
Nikos
Very Clever, Nikos!
The only problem I see is either loading the same day twice (May not be a
problem) or skipping a day. If this could be a problem, then it might be
helpful to have a table of files downloaded. Have the procedure look for the
last day loaded, add a day to it, check to see if the new date is a date that
a load would be expected (like are weekends and holidays skipped), and do
this until you have a good date, then go import the file.
May be of no value, but I am just thinking out loud. well, no THIS WOULD BE
OUT LOUD :)
> A2K is definitely capable of handling this. I have a third alternative
> to offer though, which is basically to import the .csv file without
[quoted text clipped - 38 lines]
> >
> > Thanks for your suggestions.
Nikos Yannacopoulos - 25 Apr 2005 07:40 GMT
Klatuu,
I was merely answering the particular question, but your point is valid
nonetheless. Actually I take a different approach: I have an extra field
for date in the table I import into, which I populate with the file date
(data date, not file system date) during import. I go through all files
in the particular folder, check to make sure that there are no records
in the table for a given file's date, if successful I import, I then
verify that the number of records imported equals the number of lines in
the file (minus header/footer lines), if matching I rename the file (so
it won't be imported again, but remains available just in case - clear
out those older than a week), or issue a warning message otherwise; then
move on to the next file. So, if the import process doesn't happen
everyday I don't miss anything, there are checks for successful import
etc. I suppose there can be more approaches proposed, each with its pros
and cons, this was just my $0.02's worth.
Nikos
> Very Clever, Nikos!
> The only problem I see is either loading the same day twice (May not be a
[quoted text clipped - 48 lines]
>>>
>>>Thanks for your suggestions.
Klatuu - 25 Apr 2005 13:51 GMT
Nikos,
Sorry if you thought I was being contray. I see your posts out here
regularly and you always have good ideas. I was not trying to contradict
what you had to say, only adding to it.
This is the interesting part of this group to me. I get to see a lot of
different ways to get to the same place. I learn from it daily.
> Klatuu,
>
[quoted text clipped - 67 lines]
> >>>
> >>>Thanks for your suggestions.
Nikos Yannacopoulos - 25 Apr 2005 14:30 GMT
Klatuu,
Don't worry, I didn't get the wrong idea. I just saw you build on my
reply, and thought it was worth building on it a bit further.
Regards,
Nikos
> Nikos,
> Sorry if you thought I was being contray. I see your posts out here
[quoted text clipped - 74 lines]
>>>>>
>>>>>Thanks for your suggestions.