Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2006

Tip: Looking for answers? Try searching our database.

Macro Coding calculating if one date entry is before another date entry

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
macroapa - 16 Aug 2006 09:58 GMT
I have two date fields within a User Form.

I require code that will amend produce two different sets of wording
dependant on whether Date A is before or after Date B.
ie If Date A is before Date B then Type "xxxxxx"
  If Date A is after Date B then Type "yyyyy"
Jezebel - 16 Aug 2006 10:34 GMT
Date variables are just doubles in drag, so you can use ordinary arithmetic
to compare them --

If DateA < DateB then ...

>I have two date fields within a User Form.
>
> I require code that will amend produce two different sets of wording
> dependant on whether Date A is before or after Date B.
> ie If Date A is before Date B then Type "xxxxxx"
>   If Date A is after Date B then Type "yyyyy"
 
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.