Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Problems w/ Dsum field

Discussion in 'Information Technology' started by AccessFitz, Nov 11, 2005.

  1. AccessFitz

    AccessFitz
    Expand Collapse
    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
     
  2. Loading...

    Similar Threads Forum Date
    Sikh News Sikhs Face Problems While Carrying Kirpans In Khyber-Pakhtunkhwa - SikhSiyasat.Net Breaking News Jul 29, 2016
    "Dasam" Granth - A Look At The Core Problems Dasam Granth Oct 21, 2015
    Problems In Life Sikh Sikhi Sikhism Apr 13, 2015
    Muslim Girl-Sikh Boy Marriage Problems- Please Help! Love & Marriage Oct 12, 2012
    Problems with Sikh Historiography-prof Jagdish Singh Sikh Video Aug 31, 2012

  3. Ofer

    Ofer
    Expand Collapse
    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]))
    --
    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" wrote:

    > 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
    >
     
  4. AccessFitz

    AccessFitz
    Expand Collapse
    Guest

    Ofer,

    Thank You did the trick!!

    "Ofer" wrote:

    > 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" wrote:
    >
    > > 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
    > >
     

Share This Page