Problems w/ Dsum field

G

Guest

Hi,

I'm trying to use the Dsum field in a form. I am using the =DSum("((([Trade
Date NAV]-([Corr Date NAV]+[Dist Rate]))*[Shares]))","W0005 Table","[BIN]=" &
[BIN]). My problem is that BIN is a text field. I need to change it to a
numeric. The BIN is on the form. Do I need to insert val([BIN]) in the Dsum
expression or the BIN text box or the SQL statement? Does anyone have any
ideas?

thanks
 
G

Guest

First, why do you need to change it to a number, just add a single quote
before and after

=DSum("((([Trade Date NAV]-([Corr Date NAV]+[Dist Rate]))*[Shares]))","W0005
Table","[BIN]='" & [BIN] & "'")

If you still want to change it to a number, try this

=DSum("((([Trade Date NAV]-([Corr Date NAV]+[Dist Rate]))*[Shares]))","W0005
Table","Cdbl([BIN])=" & Cdbl([BIN]))
 
G

Guest

Ofer,

Thank You did the trick!!

Ofer said:
First, why do you need to change it to a number, just add a single quote
before and after

=DSum("((([Trade Date NAV]-([Corr Date NAV]+[Dist Rate]))*[Shares]))","W0005
Table","[BIN]='" & [BIN] & "'")

If you still want to change it to a number, try this

=DSum("((([Trade Date NAV]-([Corr Date NAV]+[Dist Rate]))*[Shares]))","W0005
Table","Cdbl([BIN])=" & Cdbl([BIN]))
--
The next line is only relevant to Microsoft''s web-based interface users.
If I answered your question, please mark it as an answer. It''s useful to
know that my answer was helpful
HTH, good luck


AccessFitz said:
Hi,

I'm trying to use the Dsum field in a form. I am using the =DSum("((([Trade
Date NAV]-([Corr Date NAV]+[Dist Rate]))*[Shares]))","W0005 Table","[BIN]=" &
[BIN]). My problem is that BIN is a text field. I need to change it to a
numeric. The BIN is on the form. Do I need to insert val([BIN]) in the Dsum
expression or the BIN text box or the SQL statement? Does anyone have any
ideas?

thanks
 

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 Problem 4
dsum - 1
Dsum I have almost craked it BUT 7
DSum Formula Problem 2
Using DSUM to get running total on a filtered form 0
Dsum adds the same record twice 16
Dsum Problem 3
DSum Question 1

Top