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

Updating a Form

Hi,

New to Access... so please be kind.

Have designed a form which ithe user may wish to update the data in future
(name/address/tel info)
I would like to put a button on the page so the user can update the "edit
date" if they wish.
How can I do this so that hitting a button updates the "edit date" with the
current date?

Any help would be greatly appreciated

Andy
Nov 13 '05 #1
3 1395
Andy,
I am not sure I'd leave it up to the user to click on an explicit "Modified"
button anytime the data is changed. I'd probably put some code in the form
to set the value of a Modified column in my table to the current date and
time any time the AfterUpdate event fires. This way it's done without user
intervention.

"Andy" <an******@hotmail.com> wrote in message
news:11****************@nnrp-t71-02.news.clara.net...
Hi,

New to Access... so please be kind.

Have designed a form which ithe user may wish to update the data in future
(name/address/tel info)
I would like to put a button on the page so the user can update the "edit
date" if they wish.
How can I do this so that hitting a button updates the "edit date" with
the current date?

Any help would be greatly appreciated

Andy

Nov 13 '05 #2
Thanks for your reply. I understand what you mean about a using a new field
in my table. Still cant get the function to work though. Have created a
button on my form but still not sure of the process to write the current
date to the table. I am currently playing with the Command Button / On Click
/ Expression Builder..... am I barking up the wrong tree?? Would be grateful
for a bit more guidance !!

Thanks

Andy
"Alan Webb" <kn*****@hotmail.com> wrote in message
news:c-********************@comcast.com...
Andy,
I am not sure I'd leave it up to the user to click on an explicit
"Modified" button anytime the data is changed. I'd probably put some code
in the form to set the value of a Modified column in my table to the
current date and time any time the AfterUpdate event fires. This way it's
done without user intervention.

"Andy" <an******@hotmail.com> wrote in message
news:11****************@nnrp-t71-02.news.clara.net...
Hi,

New to Access... so please be kind.

Have designed a form which ithe user may wish to update the data in
future (name/address/tel info)
I would like to put a button on the page so the user can update the "edit
date" if they wish.
How can I do this so that hitting a button updates the "edit date" with
the current date?

Any help would be greatly appreciated

Andy


Nov 13 '05 #3
Andy,
VBA is event based. Something happens that triggers an event which if there
is code associated with the event will get run. I'd get rid of the button
on the form. Instead, I'd open my form in Design View, Click on the
Properties button to view the form's properties, click on the Event tab and
look for the AfterUpdate event. Then I'd open the Event Procedure Builder
(Code Builder) and put my code in there. That way, it all happens without
the user doing anything.

"Andy" <an******@hotmail.com> wrote in message
news:11****************@nnrp-t71-02.news.clara.net...
Thanks for your reply. I understand what you mean about a using a new
field in my table. Still cant get the function to work though. Have
created a button on my form but still not sure of the process to write the
current date to the table. I am currently playing with the Command Button
/ On Click / Expression Builder..... am I barking up the wrong tree??
Would be grateful for a bit more guidance !!

Thanks

Andy

Nov 13 '05 #4

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

Similar topics

11
by: Jason | last post by:
Let's say I have an html form with 20 or 30 fields in it. The form submits the fields via POST to a php page which updates a table in a database with the $_POST vars. Which makes more sense? ...
3
by: MLH | last post by:
I have a form, bound to a query. Its RecordSource property is a query named frmEnterLienAmounts. The form has a few bound controls and some unbound controls. The unbound controls are calculated...
1
by: Joshua Russell | last post by:
Firstly my main method is like this: static void Main(string args) { // New Form Thread FormHandler myFormHandler = new FormHandler(); ThreadStart myThreadStart = new...
4
by: Darrel | last post by:
I'm creating a table that contains multiple records pulled out of the database. I'm building the table myself and passing it to the page since the table needs to be fairly customized (ie, a...
1
by: TGriffith | last post by:
I have a function and OPEN.WINDOW event that occurs when the suer presses a button. I want to set a value in the New Window and upate a value on the parent form. Is this a javascript solution only?...
10
by: jaYPee | last post by:
does anyone experienced slowness when updating a dataset using AcceptChanges? when calling this code it takes many seconds to update the database SqlDataAdapter1.Update(DsStudentCourse1)...
5
by: Mark R. Dawson | last post by:
Hi all, I may be missing something with how databinding works but I have bound a datasource to a control and everything is great, the control updates to reflect the state of my datasource when I...
0
by: =?Utf-8?B?YmFrZXJzaGFjaw==?= | last post by:
Unless my app is EXTREMELY simple, I get the cross-threading error message regularly when updating controls on a Windows form. My latest example involves a dll that runs a System.Threading.Timer,...
1
by: Manikandan | last post by:
Hi, I have a form with progress bar. I'm querying sql server with large number of records(around 1 lakh) for export The records are written to a text file I'm showing the process running by...
2
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
Hi All! I am with a situation where I am not getting the right updating to the form's fields. The situation is the following one: I have one combobox and one textbox. I am using the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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?
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
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...

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.