Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / November 2007

Tip: Looking for answers? Try searching our database.

Data restriction by month

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eddy - 15 Nov 2007 06:52 GMT
Hi,

I just want to put some month age restriction to my database when user open
form. For example more than 3 month data, all field will be lock. All data
refers to field "InputDate". I tried with dateadd but it doesn't work.

Thank you

Signature

poyo's

mscertified - 15 Nov 2007 16:43 GMT
Look at DATEDIFF function in Access help.
Put code in OnCurrent event to lock all fields when date meets your needs

-Dorian

> Hi,
>
[quoted text clipped - 3 lines]
>
> Thank you
eddy - 16 Nov 2007 07:38 GMT
Well I got it..

DateDiff("m", [DateUpdated], Date) < 3...

Thanks anywhre.

>Look at DATEDIFF function in Access help.
>Put code in OnCurrent event to lock all fields when date meets your needs
[quoted text clipped - 6 lines]
>>
>> Thank you

Signature

poyo's

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.