Solved

Access Date functions

Posted on 2008-10-05
1
467 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

770 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