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 Programming / December 2005

Tip: Looking for answers? Try searching our database.

check date() against field "due date"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stella P - 07 Dec 2005 22:47 GMT
L.S.

I have a form with 2 subforms.
On subform2 there is a field which has as default date().
On subform1 there is a field with the "due date" of the product.

The "default date",  which is todays date when opening the form, has to be
checked against the "due date".
If "default date" > than "due date" the field "due date" has to change of
background color and blink and a message box has to appear saying that
"Default date is > than due date".

How can I have "default date" (date() ) check against "due date"?
I have the coding in the beforeupdate event in the field "default date", but
it only works if I enter the "default date" manually.
And how can I have the cursor on the field "default date" if  this field >
than "due date".
I've tried using SetFocus but I keep on getting an error.

Thanks in advance for your help.

Stella
Alp Bekisoglu - 07 Dec 2005 22:59 GMT
Have you checked Conditional Formatting? You can set the background color of
the field to red if the field value is less than Now(). But Access2000 does
not provide an option for blinking there. You would need to code that part.

For the message part, you can also code it.

Hope it helps a little.

Alp

> L.S.
>
[quoted text clipped - 19 lines]
>
> Stella
Stella Pieters - 09 Dec 2005 11:28 GMT
Hi Alp,

Thanks for the solution.
I have this other part which I cannot solve.

How can I have "default date" (which has as default date() checked against
"due date"?
I have the coding in the beforeupdate event in the field "default date", but
it only works if I enter the "default date" manually.
And how can I have the cursor focused on the field "default date" if  this
field >
than "due date".
I've tried using SetFocus but I keep on getting an error.

>Have you checked Conditional Formatting? You can set the background color of
>the field to red if the field value is less than Now(). But Access2000 does
[quoted text clipped - 11 lines]
>>
>> Stella
 
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.