Solved

Access Date functions

Posted on 2008-10-05
1
472 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 66

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

636 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