Solved

Access Date functions

Posted on 2008-10-05
1
464 Views
Last Modified: 2013-11-29
I think there's like 3 ways of accomplishing this but...    I have a Text box on one of the forms that the user enters their Starting date of class.    I also have a combobox that keeps track of the status of the reservation.  (all be it manual)  Is there a way to tie the combo box and the text box together.    i want it to automatically change a "future" (combo choice)  reservation to "inhouse" (combo choice).  

SO.  I can get the combo box to change if the day is today but how do I write the  less than or equal to todays date?


If Text40 is < or = today then 

cboStatus ="Inhouse"

Open in new window

0
Comment
Question by:Rfinsl
1 Comment
 
LVL 65

Accepted Solution

by:
Jim Horn earned 500 total points
ID: 22647025
If IsDate(Me.Text40) then
   If Me.Text40 >= Date then
      Me.cboStatus = "Inhouse"
   end if
else
   'Me.Text40 is not a valid date.  Handle it here.
end if
 
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now