Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Beginner > B5 > < B4 | B6 >
Back to Access Beginner 5    Comments List
Todays Date Upload Images   Link   Email  
Sandra Page 
I am trying to get my query to return for todays date with
="Date()" but when I run I get an internal error.

This is driving me insane, can anyone suggest why this may be occurring and it is due the fact that my default date in my table is also ="Date()"

Ive made a work around by requesting the date be entered but would like to elimate this step for sending our daily reports

Sandra Page
Forgive my spelling error - eliminate.
Sandra Page

Kevin Robertson
Remove the quotes. =Date()
Sandra Page
Hi
Thank you for the reply, access is automatically adding the quotes.  Any other suggestions, this one has me pulling my hair out
Scott Axton
No need for the = either.  Just put in Date().
Access can be a bit of a pain sometimes.  Especially if you are entering a field name it will add the quotes.  In the case of a field name you have to enclose it in brackets like [FieldName].
Since Date() is an internal function just Date() should work.
Sandra Page
Thank you Scott but that is not working either. When I have that it won't run the query.  If I put [] then it adds like a parameter and asks for the date on running
Scott Axton
Hmmm
As I said you shouldn't put the brackets - That would cause Access to look for a field called "Date".

Just double checking here.  I'm assuming that your data type for CallDate is set up as a Date/Time field type.  Make sure it didn't get changed some how.

If that is good I don't know how to advise you.  Maybe Kevin or Alex could chime in.  It might be a US vs non-US date issue in the Windows settings.  I haven't had to deal with that but they do / have.
Sandra Page
Oh my god, THANK YOU SO MUCH. I had it on extended time/date and once I changed over to date/time. It worked.

Again Thank you so much. I really appreciate your help. I honestly did a little dance when it work. You have made my day!!!
Scott Axton
Sandra So glad that was all the problem was!!  I was running out of ideas.  LOL

Put that one in your tool box for the future - always trust but verify data type if you are having issues.

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

 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/4/2024 7:38:55 AM. PLT: 1s