R
rdemyan via AccessMonster.com
I want to be able to have my application download files from my ftp site for
updating of tables. What I would like to do is to have my app check for
updates on startup. If it finds one then it notifies the user who can click
on 'Yes' to update at that time or 'No' to update at some other time.
I have all the code working to connect to my ftp site and get the names of
any files.
But I'm wondering how to name my files. Let me give you an example.
The table that needs to be updated in my application (actually located in the
backend) is a weather data table. So there would be monthly updates required
to this table. Should I only post an update that appends the new month's
worth of data to the table. Or should I have my update contain an entire
calendar year's worth of data and overwrite any existing data for the year in
the table and add the new data as well. I think the advantage of doing it
this way is that the user can download an entire year's worth of data if
needed.
So if we keep the data by year then the ftp site would contain files such as
the following
WeatherData-2004.xls
WeatherData-2005.xls
WeatherData-2006-06.xls
The WeatherData-2006-06.xls would indicate that the data for FY'06 is only
current through June (month 6 in the calendar year). The other two files
would contain complete data.
Now when the code checks for an update, it would go to a table to look for
the last update that was downloaded (i.e. WeatherData-2006-05.xls). How would
I best determine that WeatherData-2006-06 is greater and should be downloaded.
I don't want the code to get confused and tell the user that WeatherData-2004.
xls and WeatherData-2005.xls need to be downloaded.
Or maybe I should just post a .mdb instead of .xls. But I'm still unclear
about naming conventions so that my code can understand that a particular
file is indeed an update.
Thoughts, suggestions, advice are greatly appreciated.
updating of tables. What I would like to do is to have my app check for
updates on startup. If it finds one then it notifies the user who can click
on 'Yes' to update at that time or 'No' to update at some other time.
I have all the code working to connect to my ftp site and get the names of
any files.
But I'm wondering how to name my files. Let me give you an example.
The table that needs to be updated in my application (actually located in the
backend) is a weather data table. So there would be monthly updates required
to this table. Should I only post an update that appends the new month's
worth of data to the table. Or should I have my update contain an entire
calendar year's worth of data and overwrite any existing data for the year in
the table and add the new data as well. I think the advantage of doing it
this way is that the user can download an entire year's worth of data if
needed.
So if we keep the data by year then the ftp site would contain files such as
the following
WeatherData-2004.xls
WeatherData-2005.xls
WeatherData-2006-06.xls
The WeatherData-2006-06.xls would indicate that the data for FY'06 is only
current through June (month 6 in the calendar year). The other two files
would contain complete data.
Now when the code checks for an update, it would go to a table to look for
the last update that was downloaded (i.e. WeatherData-2006-05.xls). How would
I best determine that WeatherData-2006-06 is greater and should be downloaded.
I don't want the code to get confused and tell the user that WeatherData-2004.
xls and WeatherData-2005.xls need to be downloaded.
Or maybe I should just post a .mdb instead of .xls. But I'm still unclear
about naming conventions so that my code can understand that a particular
file is indeed an update.
Thoughts, suggestions, advice are greatly appreciated.