473,699 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

auto updating front-end on workstations

tdw
206 New Member
I was reading the thread called "Re: Split the DB, how do I deploy the "Front-end"?" and Denburt mentioned something that I've been interested in doing with my database, and that is to create a way for each users front-end to recognize when I have made a modification to the copy of the front-end on the server. I guess I'd like a way to "push" the updated version to the workstations, or a way for their copy of the FE to see that there is a newer one, and to give them an option to update their copy.

Denburt gave a brief explanation of what he does, referencing a "main menu" and stuff like that (would that be like the Switchboard?) but I would like to see more specific suggestions, coding, etc to give me something to work with. It would sure be nice to not have to go to each work station and copy/replace everyone's front end manually.

Thanks!
Feb 6 '08 #1
10 6071
Rabbit
12,516 Recognized Expert Moderator MVP
Off the top of my head, the way I would do it is to change the name of the file to include a version number. Then you could use code to check for a larger version number and then copy it if there's a more recent one.
Feb 6 '08 #2
tdw
206 New Member
Off the top of my head, the way I would do it is to change the name of the file to include a version number. Then you could use code to check for a larger version number and then copy it if there's a more recent one.
Makes sense. Then is there code to close the db file and reopen the new one? For example, if I write the code to look for a newer version each time the file is opened, can code within that file relaunch the updated one?
Feb 6 '08 #3
Megalog
378 Recognized Expert Contributor
I have a system set up to where every time a user starts the FE, they are actually calling a batch file that copies the current version to their local drive, and then starts it. This way I know they're using the most current revision every day. Here's the post I did on that process:
http://www.thescripts.com/forum/thread760986.html

But, I've also employed versioning as well, with a small form that starts on load, showing them their version # and information on what has changed in that revision. This form has a simple 'ok' button on it, which just turns it invisible. There's a timer set on this form, so that every 5 minutes it checks the BE version # (stored in a versioning table), and compares this number against the front end version # (stored in a module which houses the FE constants). If I make an update, I change the version # in the new FE, and in the BE table. The hidden form on the outdated FE's will detect the new 'current' version #, and alert the user that a new version is available, set the form to visible, and then show whatever information about the new available version I want. This allows them to decide if they want to restart and gain the new version, or to keep working with the one they have. Once alerted, the form timer resets to zero, and goes hidden again, else they'll be annoyed every 5 minutes with the update notice.

The coding behind it was very simple, but if you want me to post what I did just let me know.
Feb 6 '08 #4
tdw
206 New Member
I have a system set up to where every time a user starts the FE, they are actually calling a batch file that copies the current version to their local drive, and then starts it. This way I know they're using the most current revision every day. Here's the post I did on that process:
http://www.thescripts.com/forum/thread760986.html
This sounds like a good method, since it takes almost no time to copy the file over from the server to the workstation (although it takes several minutes to copy it the other direction). I have never worked with batch files, so I'll have to do some studying on that. Any recommended sites or threads for that? I'm not really a programmer, I just fake it (and learn fast) and hope that what I do works (done good so far, with help from this forum).

But, I've also employed versioning as well, with a small form that starts on load, showing them their version # and information on what has changed in that revision. This form has a simple 'ok' button on it, which just turns it invisible. There's a timer set on this form, so that every 5 minutes it checks the BE version # (stored in a versioning table), and compares this number against the front end version # (stored in a module which houses the FE constants). If I make an update, I change the version # in the new FE, and in the BE table. The hidden form on the outdated FE's will detect the new 'current' version #, and alert the user that a new version is available, set the form to visible, and then show whatever information about the new available version I want. This allows them to decide if they want to restart and gain the new version, or to keep working with the one they have. Once alerted, the form timer resets to zero, and goes hidden again, else they'll be annoyed every 5 minutes with the update notice.

The coding behind it was very simple, but if you want me to post what I did just let me know.
This option would be the best I think if I find that copying the FE file over every time someone opens the database is too annoying to the users.
I have never used timers in Access, and again would have to study that. I know ttimers have been discussed a lot in this forum, so I can search for info here. Unless a brief lesson in this thread would be very simple... or a link?

Thanks for the advice.
Feb 6 '08 #5
tdw
206 New Member
I just re-read the link you gave me, and I understand the bat file now.
I think I'll try that first, and see if it's fast enough to not disturb users.
Feb 6 '08 #6
tdw
206 New Member
I just re-read the link you gave me, and I understand the bat file now.
I think I'll try that first, and see if it's fast enough to not disturb users.
Ok, I've tested it out, and it's fast enough.
Is there a way to hide the msdos window that opens up showing the bat file commands being run? maybe replace it with a splash window or something?
Feb 6 '08 #7
Megalog
378 Recognized Expert Contributor
Ok, I've tested it out, and it's fast enough.
Is there a way to hide the msdos window that opens up showing the bat file commands being run? maybe replace it with a splash window or something?
I believe there's a way you can specify what prints to the screen, and what remains hidden.. but I dont think you can hide the command window itself. It's only on-screen for 2-3 seconds at the most so I never cared. Try googling it and see what you get. If you find a solution let me know =)
Feb 6 '08 #8
tdw
206 New Member
I believe there's a way you can specify what prints to the screen, and what remains hidden.. but I dont think you can hide the command window itself. It's only on-screen for 2-3 seconds at the most so I never cared. Try googling it and see what you get. If you find a solution let me know =)
http://www.geekstogo.com/forum/Hide-...ws-t56092.html

Pretty simple solution I never knew about.

Next step is to figure out how to display a message or splash saying something like "checking for updates..." during those 2-3 seconds. this thing gonna be pretty when I'm done with it :-)
Feb 6 '08 #9
tdw
206 New Member
Yikes.

It looks like I'm going to have to learn to use Java SE6 to do a splash screen.
But I figured out a compromise for now: I added the lines

ECHO OFF

and

ECHO CHECKING FOR REVISIONS TO THE ORDERS DATABASE PROGRAM...

to the bat file. That way all the junk it's doing doesn't show up in the command window, but the message does.
Feb 6 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2278
by: David Shorthouse | last post by:
HI is it posible to auto populate an access database.? I have 1 table structured Index_ID. - Index & auto number First_Name - Char50 Surname - Char50 Initals - Char50 Postcode - Char50 Email_Address - Char50 Mailshots - tick box
5
6112
by: Robert Downes | last post by:
I'm using the following in a page that I'm testing in Mozilla: p.actionLinkBlock {border: 1px #000000 dashed; padding: 0.2cm; width: auto} But the dashed border is extending to the right-edge of the screen. I want it to only extend as far as it needs to to nicely contain the content within (a couple of links). Is width: auto the wrong property to do this? Is Mozilla rendering the style wrong?
11
1974
by: UJ | last post by:
Has anybody had any experience writing an auto update program that will check the internet to see if there is a newer version of the code out there and download it? It doesn't seem that complicated but I just wanted to hear from people who have done it if there are any gotchas I should watch out for. TIA - Jeffrey.
6
10232
by: Corepaul | last post by:
I am new to Access 2000. My operating system is Windows 2000. In the early stage of development I noticed something weird. On my form, I have a Command Button named "btnAlbumUp". The first time that I reference this button in VBA code, the Visual Basic Editor capitalizes the P changing btnAlbumUp.SetFocus to
4
3117
by: MUSTAFA IRSHAD | last post by:
DEAR SIRS, I AM DEVELOPING A SOFTWARE BY USING VB.NET AND SQLSERVER 2000 FOR A NETWORK ENVIRONMENT. I HAVE A BROBLEM THAT I HAVE A FIELD FOR PRIMERY KEY WHICH IS AUTO GENERATED. I NEED THAT WHEN THE FORM IS LOADED THE NEXT AUTO GENERATED NO SHOULD BE IN THE REQUIRED TEXTBOX. HOW TO GET THE NEXT NUMBER FROM SQLSERVER2000 TO TEXTBOX. I WILL APPRICIAT YOUR COOPERATION. MUSTAFA IRSHAD
13
7373
by: Matik | last post by:
Hello everybody, First: SQL Server 2000 sp3a, HP cluster server, MS 2003 server, database recovery model simple Torn page detection: When I have this option turned on, processes conected with updating and writing in database, was MUCH more slower, than if I've this option turned off.
0
4451
chumlyumly
by: chumlyumly | last post by:
Hello scripters - OS: Mac OSX Language: PHP w/ MySQL database I've created an insert page where a user inputs his info, which then goes to four different tables in a MySQL database. The tables are all linked with the field 'member_id', which is an auto-increment field in the parent table ('members'). I've been able to input multiple records into the other three tables 'specialty_groups', 'committee_interest' and 'committee_member'...
6
5122
by: Jeff | last post by:
Updating my bag of tricks again. What's the level of support for margin: auto. Is this widely supported now amongst almost all browsers? It's a common request to have a "centered" page. I don't remember which major browser didn't support margin: auto, but there was a common hack with some "text-aligns". Is it time to drop the hack? Jeff
3
3525
by: =?Utf-8?B?Um9nZXIgVHJhbmNoZXo=?= | last post by:
The problem I'm coming across now is that I can't update such a column, because I have set the auto generated value to true, and LINQ won't let me change such a value, a la "System.InvalidOperationException: Value of member 'Activated' of an object of type 'Customers' changed. A member that is computed or generated by the database cannot be changed." This is fine for identity fields, but the field I'm updating is a bit that starts...
0
1763
by: Mogrin | last post by:
So I have this windows .net form app, and I have the following goals: -Needs to be 1 single file, the executable, in any directory the user decides to download it to. No installation folder, no launcher/updater app, no registry entries. -App to automatically check for updates, ask permission from user, update app, and relaunch.(if necessary) I've never done this before, so I don't know the correct way to go about this, and my...
0
8623
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
9196
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...
1
8941
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8896
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...
0
7784
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6546
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
4637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3071
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.