473,799 Members | 3,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forcing code to run from the Back End.

I'm taking over a large database that has multiple versions of the
front end on the end users machines. What I'd like to do is be able
to run code from the back end when they log in that forces them to
update to the current front end so that I can keep them updated from
then on via the front end.

What I need is some way to make the back end execute code when they
log in.

Is that even possible?

Mar 26 '07 #1
7 2606
Simply have a table in the fornt end that holds generic program data
such as version number. Create a similar table in the back end that
has version number for that module but also current front end version
number. Then in the front end have code run that tests to see if the
user has the current front end or not. If not, display a message box
and close the front end when the message box is closed. The message
box should tell them they need to update and (if you allow user to do
their own updates) instructions on how to update.

On Mar 26, 12:42 pm, dupuis.mich...@ gmail.com wrote:
I'm taking over a large database that has multiple versions of the
front end on the end users machines. What I'd like to do is be able
to run code from the back end when they log in that forces them to
update to the current front end so that I can keep them updated from
then on via the front end.

What I need is some way to make the back end execute code when they
log in.

Is that even possible?

Mar 26 '07 #2
du************@ gmail.com wrote:
I'm taking over a large database that has multiple versions of the
front end on the end users machines. What I'd like to do is be able
to run code from the back end when they log in that forces them to
update to the current front end so that I can keep them updated from
then on via the front end.
You can make sure that your front ends have the appropriate code to
check a table in the back end for the version that should be current and
flash a message saying "bzzzt, wrong version, get the latest by..." and
then quit. Put this in either the autoexec macro, or, my preferred
method, the on open event of the start form specified in startup (and
include a cancel = true if the message appears in the latter place.

Or, most elegant and by far the easiest on your users is to get Tony
Toews excellent Auto FE Updater:

http://www.granite.ab.ca/access/autofe.htm

This is perfect if your users will have only one instance of the
application open at a time.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Mar 26 '07 #3
You all seem to be missing the point. I have multiple front end
versions, with multiple users. I cannot upgrade the front end code, I
already have a NEW front end that will be put in place via the code
that I need to run from the BACK END.

I need a solution that will run when the BACK END is accessed.

Mar 26 '07 #4
First off you are using a term "code" incorrectly. You cant simply
put the code in the existing front end database. (Not easily anyway
and you really dont want to do that). You want to upgrade users to
the current verision of the front end. This IS accomplished by what
has been suiggested. Maybe you persoanlly cannot go to each users
machine to install the new version but you can wirte a simple script
to do so. Hell a .BET file will work even. However the method to
test for current version is what has been offered to you.

On Mar 26, 3:01 pm, dupuis.mich...@ gmail.com wrote:
You all seem to be missing the point. I have multiple front end
versions, with multiple users. I cannot upgrade the front end code, I
already have a NEW front end that will be put in place via the code
that I need to run from the BACK END.

I need a solution that will run when the BACK END is accessed.

Mar 26 '07 #5
I will clairfy again. I cannot run a BAT file since I am not the
administrator of the network.
What I need is a way for the Back End to trigger some code (Visual
Basic for Applications) as soon as it's accessed. The VBA code can
then initiate a forced upgrade to the current front end that has
version monitoring and updating code within it.

On Mar 26, 3:15 pm, "DavidB" <j...@yahoo.com wrote:
First off you are using a term "code" incorrectly. You cant simply
put the code in the existing front end database. (Not easily anyway
and you really dont want to do that). You want to upgrade users to
the current verision of the front end. This IS accomplished by what
has been suiggested. Maybe you persoanlly cannot go to each users
machine to install the new version but you can wirte a simple script
to do so. Hell a .BET file will work even. However the method to
test for current version is what has been offered to you.
Mar 26 '07 #6
du************@ gmail.com wrote:
I will clairfy again.
You do realize this is a voluntary support group and not some customer
support resource where you can pound your fist and demand answers?

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Mar 26 '07 #7
du************@ gmail.com wrote:
You all seem to be missing the point.
The only person to have missed the point is you.

The easiest way for you to do this is include code on your front end.
You've rewritten the front end. Good for you. Now put some foresight
into it so that when you do distribute your new front end, you won't
need to worry about users stuck with obsolete versions of it as you find
and fix bugs or develop enhancements.

But for now, you have to find some way to distribute the new front end.
You can't do that via the back end. Again, I would recommend using
Tony Toews FE autoupdater first and the other alternative I and DavidB
suggested second. Email instructions on what to do to get the new front
end running on machines.

Oh... and you're welcome/bienvenue.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Mar 26 '07 #8

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

Similar topics

0
2017
by: Hugh Lutley | last post by:
I'm trying to install the Device::SerialPort module using CPAN but whilst CPAN is running 'make test' a couple of errors are flagging so I cannot continue the install without forcing it. I'm not too worried about the errors as the success rate is still around 99.7 percent. Anyway, so how do I force the install?? I tried -f and --force options after install but they aren't recognised.... Cheers
40
3059
by: Neo The One | last post by:
I think C# is forcing us to write more code by enforcing a rule that can be summarized as 'A local variable must be assgined *explicitly* before reading its value.' If you are interested in what I mean, please look at this feedback my me: http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=3074c204-04e4-4383-9dd2-d266472a84ac If you think I am right, please vote for this feedback.
3
4239
by: Ashish | last post by:
Hello All, This is a bit wierd. I have a main page in my webapp that has toolbar to carry out some common operations. Also this main page has an iframe that hosts a page that serves as an introductory page for carrying out common actions. When a user clicks on the links in the intro page, I want the main window (i.e. the main page that hosts the iframe) to perform a postback. Any ideas how this can be accomplished ? Thanks Ashish
10
2470
by: Lynn McGuire | last post by:
Is there anyway to force code to be inline other than making that code a macro ? We have about 100 lines of code that is duplicated using a macro in about a dozen places. We would rather make this code inline but inline seems that it would probably make this code into a function. I do know about the MS __forceinline command. However, we use three compilers for this code, VC++ 2003, Open Watcom 1.5 and gcc 2.95 (on a FreeBSD box).
1
1306
by: Jeff | last post by:
I assume that this is an easy newby question... How can I conditionally force the code in a "if not page.ispostback sub" to run even if the page is posting back? More specifically, I have a web application in VB (2005) which runs through a series of questions stored in a database. Answers to the questions are stored back into the database on the first page post back. The user then clicks a "next" button, which is intended to load the...
3
2413
by: John Morgan | last post by:
I suppose the answer to this is staring me in the face but.... How do I programmatically get a page to post back? The actual situation is that I am using an aspx table control and changing the text within a cell. Though the cell text is updadated successfully it does not show up on the screen until it the page is posted back.. At the moment I am using a button which does nothing, processes no
7
2450
by: MLH | last post by:
If I drop Like "*ABC*" in a QBE grid criteria cell, the records returned include mixed case. Can I force the uppercase limitation in a QBE grid?
11
1744
by: Jon Mcleod | last post by:
I'm trying to wrap my ming around C#/CLR garbage collection. In an ASP.NET project, I'm having a problem because an object destructor is being called by another thread, long after my code is done. I'm wanting to know if I can force it to happen immediately (when the object goes out of scope) without going back and adding all of the required Dispose() calls.. public Method() { CustomClass o = new CustomClass(..);
3
2596
by: Ken Fine | last post by:
I am using ASP.NET's CreateUserWizard control. I want to force the visitor to use a username and e-mail address that I am providing in programming, and I do not want the visitor to be able to edit the forms input. I am aware that I can roll my own Create User form by using the membership API, but I am lazy and want to use most of the CreateUserWizard control's features. I tried converting the form to a template and setting the UserName...
0
9544
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
10259
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...
1
10238
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
9077
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
7570
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
6809
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
5589
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4145
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
2941
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.