dbTalk Databases Forums  

Form Question TIA -DATE FIELD

comp.database.ms-access comp.database.ms-access


Discuss Form Question TIA -DATE FIELD in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ibizar
 
Posts: n/a

Default Form Question TIA -DATE FIELD - 01-11-2004 , 05:22 PM






I want a field in my form for a client database that will help me keep
track of the last time a clients data was updated. The best I can do
so far is reflect the date the clients data was first entered, but the
date does not update after that. I'm not much good beyond wizards but
I have the form pretty much where I need it, beyond this. I appreciate
your trouble and time.

Steve

Reply With Quote
  #2  
Old   
Ira Solomon
 
Posts: n/a

Default Re: Form Question TIA -DATE FIELD - 01-11-2004 , 08:52 PM






Steve:
One line of code is required.
In design view for your form, right click the black box in the upper
left of the form. Click properties on the drop down menu.
In the proprieties dialog click the event tab.
In the list goto "before update" and click on the "..." at the far
right.
This will bring up a list box with three choices; pick code.
You will be in strange place. Don't worry.

You need to know the name of the date field you want to update.
Let us pretend that it is: DateLastUpdated.
You type:
me.datelastupdated = now()
(Actually when you type "me." , you will get a drop down with all
possible things that can go after the period. The name of your field
will be in the list)
you are done.
Close the Basic editor. (Just the plain old X box at the top right).
Then save the form.

That's it. It takes a lot longer to write this out than to do it.

Good Luck

Ira Solomon





On Sun, 11 Jan 2004 23:22:46 GMT, Ibizar <engsteve11 (AT) notmail (DOT) com>
wrote:

Quote:
I want a field in my form for a client database that will help me keep
track of the last time a clients data was updated. The best I can do
so far is reflect the date the clients data was first entered, but the
date does not update after that. I'm not much good beyond wizards but
I have the form pretty much where I need it, beyond this. I appreciate
your trouble and time.

Steve


Reply With Quote
  #3  
Old   
Ibizar
 
Posts: n/a

Default Re: Form Question TIA -DATE FIELD - 01-13-2004 , 09:26 PM




Thank you I appreciate your expertise and kindness.


Steve Bennett
www.karmastorm.com


On Sun, 11 Jan 2004 21:52:38 -0500, Ira Solomon
<isolomon (AT) solomonltd (DOT) com> wrote:

Quote:
Steve:
One line of code is required.
In design view for your form, right click the black box in the upper
left of the form. Click properties on the drop down menu.
In the proprieties dialog click the event tab.
In the list goto "before update" and click on the "..." at the far
right.
This will bring up a list box with three choices; pick code.
You will be in strange place. Don't worry.

You need to know the name of the date field you want to update.
Let us pretend that it is: DateLastUpdated.
You type:
me.datelastupdated = now()
(Actually when you type "me." , you will get a drop down with all
possible things that can go after the period. The name of your field
will be in the list)
you are done.
Close the Basic editor. (Just the plain old X box at the top right).
Then save the form.

That's it. It takes a lot longer to write this out than to do it.

Good Luck

Ira Solomon





On Sun, 11 Jan 2004 23:22:46 GMT, Ibizar <engsteve11 (AT) notmail (DOT) com
wrote:

I want a field in my form for a client database that will help me keep
track of the last time a clients data was updated. The best I can do
so far is reflect the date the clients data was first entered, but the
date does not update after that. I'm not much good beyond wizards but
I have the form pretty much where I need it, beyond this. I appreciate
your trouble and time.

Steve


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.