473,403 Members | 2,071 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,403 software developers and data experts.

Microsoft Access auto-updating exisiting records in a form not working.

I have an access database with about 3000 records, and we need to go thru this and update certain information in the records. I have created a form that has the following code...

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Dirty(Cancel As Integer)
  2. Me.Call_Date = Date
  3. End Sub
This code, I thought, would update the CALL DATE field to the most current date once a modification has been made. It works for New records, but not working for existing records.

Any and all help is appreciated.
Feb 25 '10 #1
3 1622
NeoPa
32,556 Expert Mod 16PB
If you want to update all records in a table then you need an UPDATE query.

Why don't you set down clearly exactly what you're trying to do and we can look at giving you a hand.
Feb 25 '10 #2
I am having 2 people access the data in the database. they will be doing this project over a couple of weeks. I have added a field called CALL DATE to the database. when they go into a record on the form and modify something on there, I want the form to auto-populate todays date, so I have a record of when this person was contacted last. I have added the code...

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Dirty(Cancel As Integer) 
  2. Me.Call_Date = Date 
  3. End Sub
... to the form, and when I add a new record, it will auto-populate the information. When I go into an existing form, it will not place the information in the CALL DATE field. I am looking to have it update automatically so I can have a record of when a record was modified last. if the go into a record, and no changes are made, it should not modify the CALL DATE field.
Feb 25 '10 #3
NeoPa
32,556 Expert Mod 16PB
Ah. That's quite different then. Ignore the SQL in that case.

The event you're looking for would be the BeforeUpdate event then.

Welcome to Bytes!
Feb 25 '10 #4

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

Similar topics

2
by: shoa | last post by:
Hello I can link MS Access (front) with MySQL (back end). However, when I add a new record, the previous added record is signed as Deleted record (view in Access) even I can view this record in...
1
by: Gary Dale | last post by:
I have a database that was originally set up in Access 97 (because that was what we had in the office). We had a copy of Access 2000 set up on one machine for a brief period to get at another...
0
by: Arno R | last post by:
Hi all I still have clients with apps running on Access 2.0 It would be nice if I could use the Auto FE Utility for 1 of them Anybody tried the Auto FE Utility from Tony Toews with Access 2.0...
0
by: Arno R | last post by:
Hi all I still have clients with apps running on Access 2.0 It would be nice if I could use the Auto FE Utility for 1 of them Anybody tried the Auto FE Utility from Tony Toews with Access 2.0...
4
by: Arno R | last post by:
Since I have seen Tony T. around the last week I thought I'll try once more ;-) Hi all, I still have clients with apps running on Access 2.0 It would be nice if I could use the Auto FE...
26
by: Dragon | last post by:
I have an Access 2003 .mde sitting on an SQL Server. The tables for the application also sit on the Server. I'm having a problem with ODBC on only one of about 10 machines. All the other machines...
2
by: Aharon Koss | last post by:
I wrote a program in microsoft access to send a report via e-mail. The e-mail works great when I run the computer from a session on my server. However, when I auto schedule the job to run the...
6
by: Helmut | last post by:
Hello, I am Helmut, my database has a Frontend of 15.4 MB which cause Acc2K to corruption: Limit is 12.5 MB. Service Pack 3. On three different PCs with 256, 512 and 1.000 MB RAM. All on W2K,...
2
by: bubblegirl | last post by:
Hi, I need help in getting this database to work well (user-friendly) by generating auto client ID. The ID is NOT the auto number that Access automatically create when there is no primary key. ...
4
by: JO | last post by:
hello, how could i make to know if my column PK on access is auto increment. with .net i use Dim dtLstKP As DataTable = MyConn.GetOleDbSchemaTable(OleDbSchemaGuid.Primary_Keys, New Object()...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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
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,...
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
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...
0
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,...

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.