Solved

i need help in a query formula in access 2010

Posted on 2011-03-02
3
629 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 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Another multiple criteria puzzle 4 19
Is Access 2010 compatible with Office 2016 and Office 365 10 15
Query 14 22
SQL Query 3 0
This article describes some very basic things about SQL Server filegroups.
Read about achieving the basic levels of HRIS security in the workplace.
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 …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now