473,396 Members | 1,860 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,396 software developers and data experts.

How do I automatically update a date field upon data entered into another field?

This concerns an Access 2002 (XP) database. There are two fields,
"Notes" (Memo Field) and "Notes Update" on a form (among others)
which I am concerned with here.

Problem: I need to be able to tell when people have added notes to a
record. (this database contains 6000+ records)

I want to set it up so that "Notes Update" is updated to the current
date whenever someone actually enters data into, or modifies data in,
the "Notes" field (but NOT when just browsing the information in the
field).
How I tried to solve the problem:

I added a field called "Notes Update" in a date format to the table.

I wrote a macro and put it into the "After Update" field of the
"Notes" Field on the form. The macro simply jumped to the "Notes
Update" field.

I put =Date() in the "On enter" property of the "Notes Update" field
on the form.

My hope was that an entry in the "Notes" field would trigger a jump to
the "Notes Update" field, which would then cause Date() to put that
day's date into the field.

I also removed the tab stop from the "Notes Update" field to prevent
anyone tabbing to the field and changing the date that way.

Unfortunately it didn't work.

Can anyone suggest the best way to get this to happen?
Nov 12 '05 #1
3 12944
Create a Text Box bound to your last-updated-on field, set the value to
either Date() or Now() as you prefer in the BeforeUpdate event for the
record. The event won't fire unless the record is being saved. Seems too
simple -- maybe I missed something?

Larry Linson
Microsoft Access MVP

"BlackFireNova" <BF*****************@myrealbox.com> wrote in message
news:8d**************************@posting.google.c om...
This concerns an Access 2002 (XP) database. There are two fields,
"Notes" (Memo Field) and "Notes Update" on a form (among others)
which I am concerned with here.

Problem: I need to be able to tell when people have added notes to a
record. (this database contains 6000+ records)

I want to set it up so that "Notes Update" is updated to the current
date whenever someone actually enters data into, or modifies data in,
the "Notes" field (but NOT when just browsing the information in the
field).
How I tried to solve the problem:

I added a field called "Notes Update" in a date format to the table.

I wrote a macro and put it into the "After Update" field of the
"Notes" Field on the form. The macro simply jumped to the "Notes
Update" field.

I put =Date() in the "On enter" property of the "Notes Update" field
on the form.

My hope was that an entry in the "Notes" field would trigger a jump to
the "Notes Update" field, which would then cause Date() to put that
day's date into the field.

I also removed the tab stop from the "Notes Update" field to prevent
anyone tabbing to the field and changing the date that way.

Unfortunately it didn't work.

Can anyone suggest the best way to get this to happen?

Nov 12 '05 #2
Larry:

I understand what you are saying about the text box, however I want
that date to be placed into the table, so a record of the updated date
is maintained. How do I get the date, once placed into the text box,
into the field in the table?

BFN
Nov 12 '05 #3
On 14 Oct 2003 20:45:47 -0700, BF*****************@myrealbox.com
(BlackFireNova) wrote:

Presumably the field would be bound to the corresponding field in the
table.

-Tom.

Larry:

I understand what you are saying about the text box, however I want
that date to be placed into the table, so a record of the updated date
is maintained. How do I get the date, once placed into the text box,
into the field in the table?

BFN


Nov 12 '05 #4

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

Similar topics

3
by: Dave [Hawk-Systems] | last post by:
Have a table with fnumber and number, both text fnumber is a phone number, format "8005551212" number needs to be the same number but in the format "(800) 555-1212" we currently run the...
1
by: Alienz | last post by:
I'm sure this is easy so if you have a sec pls help me out thx. Let say I have an inventory table and at the end of the month I want to move the info in 1 field (total end of month 1) into...
3
by: euphorica | last post by:
I am making an inventory database. I have a field InventoryNumber where I put a specific code. The code always starts with a particular letter. I would like to fill in another field with...
8
by: ivijayan | last post by:
HI. I have the following query:- How do i create field which updates its contents on the basis of data in another field in same record. especially if I have a Date field, how can I change the...
4
by: rcwoodard | last post by:
Hello all. I have a continuous form that I need to make a field invisible or visible depending on the selection in another field. I have tried using Form_Current() and the following code: ...
2
by: dympna | last post by:
Hi can anyone suggest a fix for this... as I am a novice in access. I have created a training table with the following fields Employee Name - joe Training Received - Fork lift Date Received...
1
by: Kombz | last post by:
Please help -- been away from access for seven years and trying to set up a field that will return the data based on another field. i.e.: if they choose underwriter in the typeofdonation field,...
1
by: MicMic | last post by:
I have a field called HyperlinkCopy and on exit I want the data in that field to be copied into ViewCertificate. Thanks
8
by: mjvm | last post by:
Hi, I'm new to asking for help on the web, but haven't been able to find an answer to my question through Google - probably because I am not using the right words. In my form, I want to be able...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
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...

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.