A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date Created



 
 
Thread Tools Display Modes
  #1  
Old January 3rd, 2007, 07:24 AM posted to microsoft.public.access.tablesdbdesign
dinadvani via AccessMonster.com
external usenet poster
 
Posts: 43
Default Date Created

Hi All,

I have 5 forms in which have put field date created and date modified. I have
put formula as Date() and set the enabled property to NO and Locked property
to YES. But the problem is now when I opened the forms they all had the
current date.

Please help me to resolve this issue.

I need these fields to build a Query on date created and modified, so as to
know the new fields added on a particular day.

Also I need your help for building the query, as the data in the forms are
formula it does not gets stored in Tables, so how do I go about it so as to
build a query wherein a user types a particular date and all the entries on
that date pops up.

Thanks a lot

Regards,
DA

--
Message posted via http://www.accessmonster.com

  #2  
Old January 3rd, 2007, 11:53 AM posted to microsoft.public.access.tablesdbdesign
dinadvani via AccessMonster.com
external usenet poster
 
Posts: 43
Default Date Created

Please Help......


dinadvani wrote:
Hi All,

I have 5 forms in which have put field date created and date modified. I have
put formula as Date() and set the enabled property to NO and Locked property
to YES. But the problem is now when I opened the forms they all had the
current date.

Please help me to resolve this issue.

I need these fields to build a Query on date created and modified, so as to
know the new fields added on a particular day.

Also I need your help for building the query, as the data in the forms are
formula it does not gets stored in Tables, so how do I go about it so as to
build a query wherein a user types a particular date and all the entries on
that date pops up.

Thanks a lot

Regards,
DA


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...esign/200701/1

  #3  
Old January 3rd, 2007, 12:44 PM posted to microsoft.public.access.tablesdbdesign
Rick Brandt
external usenet poster
 
Posts: 4,354
Default Date Created

dinadvani via AccessMonster.com wrote:
Hi All,

I have 5 forms in which have put field date created and date
modified. I have put formula as Date() and set the enabled property
to NO and Locked property to YES. But the problem is now when I
opened the forms they all had the current date.

Please help me to resolve this issue.

I need these fields to build a Query on date created and modified, so
as to know the new fields added on a particular day.

Also I need your help for building the query, as the data in the
forms are formula it does not gets stored in Tables, so how do I go
about it so as to build a query wherein a user types a particular
date and all the entries on that date pops up.


On your form you need =Date() as the DefaultValue property for [date created],
not as the ControlSource property. The ControlSource (for both TextBoxes)
should be the name of the field where you want the value saved.

For [date modified] you have to use VBA code. That TextBox should have no
DefaultValue property and in the BeforeUpdate event of the form you run code...

Me![date modified] = Date

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #4  
Old January 5th, 2007, 05:37 AM posted to microsoft.public.access.tablesdbdesign
dinadvani via AccessMonster.com
external usenet poster
 
Posts: 43
Default Date Created

Thanks a lot Rick

Rick Brandt wrote:
Hi All,

[quoted text clipped - 12 lines]
about it so as to build a query wherein a user types a particular
date and all the entries on that date pops up.


On your form you need =Date() as the DefaultValue property for [date created],
not as the ControlSource property. The ControlSource (for both TextBoxes)
should be the name of the field where you want the value saved.

For [date modified] you have to use VBA code. That TextBox should have no
DefaultValue property and in the BeforeUpdate event of the form you run code...

Me![date modified] = Date


--
Message posted via http://www.accessmonster.com

 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.