DSUM Help requested.

Joined
May 9, 2007
Messages
1
Reaction score
0
Dear friends,

I am trying to use DSUM function however, whenever I am running following query, I am receiving an error message "data type mismatch in criteria expression". Rest_code is a text field with lookup value from another table.
Query is:
SELECT a.*, DSum("net_sales","SHIRISH_MIS_EXCEL_DSR_QUERY1", "rest_code= " & rest_code & " and dsr_date <= " & dsr_date ) AS Expr1
FROM SHIRISH_MIS_EXCEL_DSR_QUERY1 AS a;



If "rest_code like" is used then it returns blank result. The rest_code+dsr_date is unique in the table.

Request you to help me please.

Shirish
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

dsum sytax error 5
Parameter Query with DSum 1
dsum with multiple criteria and decimals 0
Dsum Problem with date criteria 1
DSUM Function 1
Dsum Problem 3
Help with DSum to create running sum 11
Dsum returns #Error 4

Top