By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,985 Members | 1,863 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,985 IT Pros & Developers. It's quick & easy.

Updating a Form

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.