473,385 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Open button stays open until Closed by other Button

1
Hello,
I have a problem. I need to have a Open button That keeps the form Open Untill Management Closes Button and A date stamp to record date and time Record is Closed. Many employees will be opening and closing forms.

Thank you and God Bless,

Burton
Mar 1 '13 #1
1 1385
zmbd
5,501 Expert Mod 4TB
Please note: to provide completed code or a completed project is against site policy. Please consult the FAQ and specific forum sticky threads for further information.

---><---
You are not very clear in how your application is designed.
You do not state which version of Access you are using.
There are 5 ways off the top of my head to solve this problem: which one depends on your particular situation.

I will however take a stab:

ASSUMPTION ONE:
You have a split database... to be clear: that means that there is one central data store commonaly refered to as the "back-end (BE)." The BE contains only the data, main queries and main reports AND is located on a central server share. There are numerous "front-ends (FE)" that are normally downloaded to each client PC.

ASSUMPTION TWO:
When the FE is opened on a client PC by a NON-Management user; you have a form that once opened you need to ensure that a manager has authorized the action.
EACH user has THEIR OWN copy of the FE on their PC.

ASSUMPTION THREE:
The manager will be using a seperate PC from the others.

From your post, you may User A on PC AA, User B on PC BB, and User M on PC MM.
User M is management, all others are non-management.

In your BE you will need to have a means of tracking which form of internest is open and by which user.

So when User A opens the form, this will be noted.
So when User B opens the form, this will be noted.

I would use the timer event in the form to check for approval. Once found, the close button is either enabled or made visible.
I would also use the Form.Unload Event (Access) Office 2010 to check against the record you need to have a date recorded and against the management approval and cancel the unload if either are missing. IF the date is there; however, no management approval then I'd throw an error message at the user, the manager, and send emails out to the next level up in the management food chain, IT Security, and the DBA.

User M, logs into PC MM and opens a form that will show that A and B have pending actions. M can then select one, both, all, etc... and confirm the pending actions.

If M is to use either PC AA or BB then you will need a way to verify that it is actually M. I would use a management approval button on the form that enquires about M's user id and password/PIN - each field I'd used the password format so as to keep both somewhat protected from common knowledge; however, for security, I would use a different terminal and no management button. IN anycase, the button's code would then either send out a bunch of nasty grams to the management team if the validation failed or make your record updates and either close the form or enable the close button.

I envision at least one table that holds the tracking.
I envision at least two forms... one that is the manager's control panel and the remaining forms are the ones yo need tracked.

You might even have a "Management" FE vs POU FE: I've done this for myself. In several of the DB I have live in the labs, there is a Management FE that only supervisors and others under the ActiveDirectory Security can d/l and a POU for the labs.


Beton, if you have not done so please read thru the posting guidlines:

> Out right requests for full code are against site policy.
> Bytes is not a code nor homework service. Please read the FAQ and posting guidelines before re-posting your question.
>> Before Posting (VBA or SQL) Code.
>> How to ask "good" questions -- READ BEFORE SUBMITTING A QUESTION!.
>> POSTING_GUIDELINES: Please Read Carefully Before Posting to a Forum.
Mar 2 '13 #2

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

Similar topics

8
by: Alan | last post by:
When I run an executable directly (there's no console output), an MS-DOS windows opens briefly, then closes. When I call my executable from a batch file, the window stays open and says "finished."...
0
by: keithb | last post by:
How to set up Treeview so that segments opened by user remain open until closed by user. Thanks, Keith
2
by: susan | last post by:
Hi, Anybody knows how to bind a command to the open button at a file browser dialog? I want to add selected files to a scrolllist. Like this: def browseFile(self): file =...
1
by: Thad | last post by:
I writing my html pages in xhtml transitional 1.0. Trying to get a button to open a new html page when pressed. Wanting to make this happen with using javascript. Can somebody help me with this...
4
by: nittin14 | last post by:
hi guys i m a beginner in Asp.net can u tell me that how to open page in new window after click button as well as i want to pass some data from this page. thanks
5
by: ssq | last post by:
Hi, Can anyone help me write a code on the Button to Open a MS Word File. Thanks
1
by: Rico | last post by:
Hello, I have an application written in Access 2002. The problem is, when I close the App, even if I click the X in the upper right hand corner, the app flashes and stays open. It never used...
1
by: Dan2kx | last post by:
Good morn peeps, i have a timer form that closes the DB after 5 mins of inactivity, i have just noticed that if there is a message box open, this remains open without access (and keeps the ldb...
2
by: sohil | last post by:
How to open a file that contains some other extension like(.mxd) when button is click
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...

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.