Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Appointments < Aggregate Query | IIF >
Back to Appointments    Comments List
Upload Images   @Reply   Bookmark    Link   Email  
Future Range
Monica Jones 
        
3 years ago
Great info as always. I haven't taken your VBA course, yet, so I'm stumbling in the dark and Google is giving me conflicting answers. I'm trying to change the Future Only case to be limited to the next seven days. Some places on Google say to use the operator To between the dates and others say it simply can't be done. Here's what I currently have(and it turns red) "WHERE StartDateTime = #" & Date & "# " To StartDateTime <= #" & Date+7 & "# "
TIA,
Monica
Kevin Robertson  @Reply  
          
3 years ago
You have an extra double quote. Also, use And instead of To.

"WHERE StartDateTime = #" & Date & "# And StartDateTime <= #" & Date+7 & "# "
Richard Rost  @Reply  
          
3 years ago
One minor change to what Kevin has:

"WHERE StartDateTime >= #" & Date & "# And StartDateTime <= #" & Date+7 & "#"
Monica Jones OP  @Reply  
        
3 years ago
Thank y'all so much! It works perfectly!

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Appointments.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/22/2025 7:28:48 PM. PLT: 1s