Solved

Capture update date

Posted on 2015-02-05
3
83 Views
Last Modified: 2015-02-10
Hi Experts,
I do not know this is going be possible to do but want to get some ideas or better way to do.  Currently I have a form that have a date call "Rec'd Date", I also have fields call Last Update (PDUPDT) and Last updated by(PDUPDUSR).  I have code for the Last update and Last update by on Form BeforeUpdate:
PDUPDT = Date
PDUPDUSR = "User"
to capture what update the Rec'd Date.
What I want to do is , I want to put two Text Box on the form and show a specific user that updated this record, I don't need to be store in the table.  For example:  JDoe (that's the user's name), enter the Rec'd date on 2/2/15.  the two text boxes on the form will show JDoe, 2/2/15, but if JSmith update the this record on 2/3/15 but not the Rec'd date because once the Rec'd Date enter, it will lock, so no one can edit the Rec'd date, but we want to know when JDoe entered the Rec'd date, that's all we looking for. these two text boxes still show JDoe, 2/2/15.  Is this possible?  How?

Thanks,
0
Comment
Question by:urjudo
3 Comments
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 250 total points
ID: 40592284
It is not possible with values not stored in the table or somewhere else.

It would be easier - it it should be done at all - - and perhaps the only possible method - to just store the update date and then - in case of an update error at another user - to refresh the data displayed.

You may need to rethink the concept.

/gustav
0
 

Author Comment

by:urjudo
ID: 40592314
I put the PDUPDT = Date, so if JDOE access to this record on 2/3/15, then JSmith access to the same record on 2/4/15, the PDUPDT will be changed to 2/4/15 not 2/3/15, the reason I asked this is because one user tried to enter the Rec'd date which this user should not be do that, so when this user entered, anther user update the record then it will be replace the update user's name to the last user and we want to capture to see when she entered the Rec'd date.  I don't want to changed the whole thing on the form just because one user, that's why I tried to think something like that, if you have a better way, please share.
0
 
LVL 34

Assisted Solution

by:PatHartman
PatHartman earned 250 total points
ID: 40592935
How do you tell which users can update the Rec'd Date?  In the BeforeUpdate event of the Rec'd date, you would check to see if this user is allowed to update the date and if he is, then populate the date and user.  Cancel the update if he is not allowed to update.  Also if you can only update the Rec'd date once, you need to examine the .OldValue property and only allow the update if the .OldValue property of Rec'd date is null.  However, what will you do if someone types in an incorrect value?  You will need a way to override the edit that only allows the data to be entered once.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now