dbTalk Databases Forums  

generate a versionnumber

comp.databases.ms-access comp.databases.ms-access


Discuss generate a versionnumber in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michiel Rapati-Kekkonen
 
Posts: n/a

Default generate a versionnumber - 01-24-2008 , 08:46 AM






Hi,

I would like to generate a versionnumber (and save it in a internal table)
on the moment I make a mde.

Then there would also be such version tabel in the central, linked data mdb.
When the mde is opened it checks if the number in the datafile is higher,
lower or the same.
If it is lower than it's own, it would update the number in the datafile.
If it is lower it knows that there is a newer version of the application and
dispalys a message to urge the user to fetch it.

Is this a good plan?
And is it possible?

Thanks for your help

Michiel



Reply With Quote
  #2  
Old   
Tom van Stiphout
 
Posts: n/a

Default Re: generate a versionnumber - 01-24-2008 , 09:04 AM






On Thu, 24 Jan 2008 14:46:49 GMT, "Michiel Rapati-Kekkonen"
<michiel (AT) nonsense (DOT) zz> wrote:

Yes.
Yes.
In our company we have a "launcher" program that does the version
check, automatically downloads a new version, and fires up your
application.
I believe Tony Toews' updater program does something similar. I'm sure
you can find his site.

-Tom.


Quote:
Hi,

I would like to generate a versionnumber (and save it in a internal table)
on the moment I make a mde.

Then there would also be such version tabel in the central, linked data mdb.
When the mde is opened it checks if the number in the datafile is higher,
lower or the same.
If it is lower than it's own, it would update the number in the datafile.
If it is lower it knows that there is a newer version of the application and
dispalys a message to urge the user to fetch it.

Is this a good plan?
And is it possible?

Thanks for your help

Michiel


Reply With Quote
  #3  
Old   
Tony Toews [MVP]
 
Posts: n/a

Default Re: generate a versionnumber - 01-24-2008 , 07:22 PM



"Michiel Rapati-Kekkonen" <michiel (AT) nonsense (DOT) zz> wrote:

Quote:
I would like to generate a versionnumber (and save it in a internal table)
on the moment I make a mde.
You could create a subroutine which you always call to do the version number update
and make the MDE which would have the following code in it.

You can automate MDE creation with the Application.RunCommand method, using
acCmdMakeMDEFile as the argument, either in code or with a macro.

For Access 97 use SysCmd 603, "CurrentMDBName.MDB", "MDEName.MDE"

Quote:
Then there would also be such version tabel in the central, linked data mdb.
When the mde is opened it checks if the number in the datafile is higher,
lower or the same.
If it is lower than it's own, it would update the number in the datafile.
If it is lower it knows that there is a newer version of the application and
dispalys a message to urge the user to fetch it.

Is this a good plan?
And is it possible?
Sure is. But the Auto FE Updater just looks to see if the date/time of the MDE, and
other files, on the server has changed. If they're changed it automatically copies
down the new files. Now given that Access updates the date/time of the MDE/MDE
while the user is in it the date/time of the files on the server are stored in an INI
file on the workstation.

There are links to such sample code out there on the page mentioned below.

I specifically created the Auto FE Updater utility so that I could make changes to
the FE MDE as often as I wanted and be quite confident that the next time someone
went to run the app that it would pull in the latest version. For more info on the
errors or the Auto FE Updater utility see the free Auto FE Updater utility at
http://www.granite.ab.ca/access/autofe.htm at my website to keep the FE on each PC up
to date.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/


Reply With Quote
  #4  
Old   
Larry Linson
 
Posts: n/a

Default Re: generate a versionnumber - 01-24-2008 , 08:44 PM



And, for a simpler approach to "versioning", see the article on the subject
at http://accdevel.tripod.com.

Larry Linson
Microsoft Access MVP

"Michiel Rapati-Kekkonen" <michiel (AT) nonsense (DOT) zz> wrote

Quote:
Hi,

I would like to generate a versionnumber (and save it in a internal table)
on the moment I make a mde.

Then there would also be such version tabel in the central, linked data
mdb.
When the mde is opened it checks if the number in the datafile is higher,
lower or the same.
If it is lower than it's own, it would update the number in the datafile.
If it is lower it knows that there is a newer version of the application
and dispalys a message to urge the user to fetch it.

Is this a good plan?
And is it possible?

Thanks for your help

Michiel




Reply With Quote
  #5  
Old   
Michiel Rapati-Kekkonen
 
Posts: n/a

Default Re: generate a versionnumber - 01-25-2008 , 04:45 AM



Thanks all for your tips

I decided to register the date/time every time I open the app as long as it
is mdb
this info is not registered anymore when the app is an mde.
hence the mde has the latest possible date.
from then on it checks and if neccesary updates the versiondate field in the
central data.
if it encounters a newer date it gives a message: fetch update.

should do the trick.

to automate the mde making is for me no neccessity.
but if it would be possible to install the update automatically, ha, that
would be really interesting!
I will study the Auto FE Updater.

Michiel



"Tony Toews [MVP]" <ttoews (AT) telusplanet (DOT) net> wrote

Quote:
"Michiel Rapati-Kekkonen" <michiel (AT) nonsense (DOT) zz> wrote:

I would like to generate a versionnumber (and save it in a internal table)
on the moment I make a mde.

You could create a subroutine which you always call to do the version
number update
and make the MDE which would have the following code in it.

You can automate MDE creation with the Application.RunCommand method,
using
acCmdMakeMDEFile as the argument, either in code or with a macro.

For Access 97 use SysCmd 603, "CurrentMDBName.MDB", "MDEName.MDE"

Then there would also be such version tabel in the central, linked data
mdb.
When the mde is opened it checks if the number in the datafile is higher,
lower or the same.
If it is lower than it's own, it would update the number in the datafile.
If it is lower it knows that there is a newer version of the application
and
dispalys a message to urge the user to fetch it.

Is this a good plan?
And is it possible?

Sure is. But the Auto FE Updater just looks to see if the date/time of
the MDE, and
other files, on the server has changed. If they're changed it
automatically copies
down the new files. Now given that Access updates the date/time of the
MDE/MDE
while the user is in it the date/time of the files on the server are
stored in an INI
file on the workstation.

There are links to such sample code out there on the page mentioned below.

I specifically created the Auto FE Updater utility so that I could make
changes to
the FE MDE as often as I wanted and be quite confident that the next time
someone
went to run the app that it would pull in the latest version. For more
info on the
errors or the Auto FE Updater utility see the free Auto FE Updater utility
at
http://www.granite.ab.ca/access/autofe.htm at my website to keep the FE on
each PC up
to date.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.