Solved

Access Date Prompt in Query

Posted on 2013-01-11
2
235 Views
Last Modified: 2013-01-11
What I'm trying to do is that if the enter date is greater than or equal to [Entry Exit Exit Date], then result be "Yes" if not "No".

When I try the expression as is, I get no data results.

[Enter Reporting End Date]

End of Report Period is: IIf([Enter Reporting End Date]>=Format([qrySHOFamilySystemB]![Entry Exit Exit Date],"Short Date"),"Yes","No")
0
Comment
Question by:jbakestull
[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
2 Comments
 
LVL 120

Assisted Solution

by:Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1) earned 250 total points
ID: 38768821
try


End of Report Period is: IIf([Enter Reporting End Date]>=Cdate(Format([qrySHOFamilySystemB]![Entry Exit Exit Date],"Short Date")),"Yes","No")
0
 
LVL 61

Accepted Solution

by:
mbizup earned 250 total points
ID: 38768824
try this:

IIf(Format([Enter Reporting End Date], "yyyymmdd") >= Format([qrySHOFamilySystemB]![Entry Exit Exit Date],"yyyymmdd"),"Yes","No")

Open in new window

0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Looking for advice on how to develop a project database 2 47
Conditional Format if Between Dates 9 44
Create a varying recordset 5 53
Cant delete records in query 8 48
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

732 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