Solved

i need help in a query formula in access 2010

Posted on 2011-03-02
3
645 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
[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
3 Comments
 
LVL 8

Accepted Solution

by:
kingjely earned 500 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

Industry Leaders: 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

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
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 …

751 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