Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

i need help in a query formula in access 2010

Posted on 2011-03-02
3
Medium Priority
?
657 Views
Last Modified: 2012-05-11
i wrote this code
Winter2011: DSum("sum","invoicesandinvoiceszikuilist1q","customer=" & [customerid] & " AND orderdate> #09/01/10# AND <=#03/31/11#")

and all the field names are right but when i add this part from " AND orderdate> ,,,, and i run this query the all column written "error"  but i can't figure out what is the problem with this
0
Comment
Question by:bill201
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
kingjely earned 2000 total points
ID: 35024738

Try this

AND orderdate between '#09/01/10#' AND '#03/31/11#' ")

0
 

Author Comment

by:bill201
ID: 35024757
it's worked (but i don't has to use the apostrophes
juse like this Winter2011: DSum("sum","invoicesandinvoiceszikuilist1q","customer=" & [customerid] & "  AND orderdate between #09/01/10# AND #03/31/11# ")
0
 
LVL 8

Expert Comment

by:kingjely
ID: 35024778
Ahh okay cool,

sometimes you need the ' ' depends how the date is stored.

Glad to help,
Thanks for the grade :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How much do you know about the future of data centers? If you're like 50% of organizations, then it's probably not enough. Read on to get up to speed on this emerging field.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

876 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