Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dsum Filter date dont work

Status
Not open for further replies.

JUANCARLOS

Programmer
Oct 30, 2000
61
PE
I have the following calculation:


Function Calculate_TotalAmount(DateLimit as date) as double
A=dsum(&quot;[TotalAmount]&quot;,&quot;Invoices&quot;,&quot;[DateInv] <= #&quot; & DateLimit & &quot;#&quot;)

And A= to the total of amount in all the records the table has, it happen such the filter dont exist.

Please help me.

Thanks in advance.

Juan Carlos.

 
Hi,

Have you declared these variables?
or are you only giving part of the code?
 
Nowell thanks for your answer, is a part of the code, all variables are declared, please prove the code and you have the same error.

I waiting for your answer

Juan Carlos
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top