473,671 Members | 2,504 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

generate a versionnumber

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
Jan 24 '08 #1
4 1799
On Thu, 24 Jan 2008 14:46:49 GMT, "Michiel Rapati-Kekkonen"
<mi*****@nonsen se.zzwrote:

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.

>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
Jan 24 '08 #2
"Michiel Rapati-Kekkonen" <mi*****@nonsen se.zzwrote:
>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.Run Command method, using
acCmdMakeMDEFil e as the argument, either in code or with a macro.

For Access 97 use SysCmd 603, "CurrentMDBName .MDB", "MDEName.MD E"
>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/
Jan 25 '08 #3
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" <mi*****@nonsen se.zzwrote in message
news:tx******** ******@read4.in et.fi...
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

Jan 25 '08 #4
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]" <tt****@teluspl anet.netwrote in message
news:77******** *************** *********@4ax.c om...
"Michiel Rapati-Kekkonen" <mi*****@nonsen se.zzwrote:
>>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.Run Command method,
using
acCmdMakeMDEFil e as the argument, either in code or with a macro.

For Access 97 use SysCmd 603, "CurrentMDBName .MDB", "MDEName.MD E"
>>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/

Jan 25 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2411
by: Almoni | last post by:
Hi, I have a few .xsd files that include each other in the following way: <!-- lets call the main schema file AA.xsd and it includes BB.xsd inside it --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
3
2177
by: Garry Dawkins | last post by:
Hey Frank, I'm a novice with this taking over someone elses application. I'm attempting to add a dataset to a page. I have the query to populate the page and I have the walkthrough instructions. Visual Studios does not want to cooperate. This is what I'm following: To generate a dataset From the Data menu, choose Generate DataSet. Tip If the Generate DataSet command is not enabled, click the page; the page must have focus for the...
1
475
by: jtsree | last post by:
I am Using (Windows XP) Visual Studio.net 2003 professional edition working on VB.net language. I am bulding a very very simple project in VB.net where i connect to Access Database by dragging OledbDataAdapter tool from the Data tab of the Toolbox. When OledbDataAdapter has been added to the Component tray i am able to generate a connection to Access database and generate Connection object and also the Test Connection has Succeeded. Now...
9
1818
by: Henk Verhoeven | last post by:
We are not alone! "Where other MDA tools are generating programmingcode, Codeless chooses not to generate code at all". OK, phpPeanuts is not an MDA tool (it has no fancy modeling GUI). But it does generate application behavior straight from the metamodel, without generating code. And we did not need "a decade of know-how in maintaining systems with more than 30 million lines of generated code" to understand that it is not necessary to...
4
2073
by: Stephen | last post by:
I need to generate input XML for another application by serialising classes defined in an XSD document. The code below will generate the XML I require but I need to generate this in memory rather than creating a file. I assume I should be using System.IO.MemoryStream but can't get this to work. ' XML will be serialized to file.xml, in UTF-8, with BOM. Dim tw As New System.Xml.XmlTextWriter( _ New System.IO.FileStream("file.xml",...
1
2322
by: A Traveler | last post by:
Hello, i am having this problem. The exact error message is: "Unable to generate code for a value of type 'System.Web.UI.Page'. This error occurred while trying to generate the property value for Page." After a lot of googling, all i can find that this applies to is when trying to use enum-type datatypes as bit-vector flags, or when use designers to make an expandable property in the property tool-window. However, NEITHer of these...
8
13375
by: mortb | last post by:
Hi, How do I write a GenerateHashcode function that will generate guaranteed unique hashcodes for my classes? cheers, mortb
0
2253
by: ward | last post by:
Greetings. Ok, I admit it, I bit off a bit more than I can chew. I need to complete this "Generate Report" page for my employer and I'm a little over my head. I could use some additional assistance. I say additional because I've already had help which is greatly appreciated. I do try to take the time and understand the provided script in hopes on not having to trouble others on those. But here it goes...
2
7384
by: bthubbard | last post by:
This may not be the best group in which to post this. If there is a better location please direct me there. I have been experimenting with Sandcastle to generate CHM help file documentation for some of our projects. I can configure a project(s) to generate the required XML Documentation file by editing the project properties via VS or I believe, if we were using one, a XML configuration file for MSBuild. We usually build our solutions...
0
8483
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8402
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8927
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8825
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8676
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6237
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5703
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4416
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.