time dsum and #

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wassimdaccache
    New Member
    • Apr 2007
    • 222

    time dsum and #

    Dear all


    What is the difference between
    Code:
    =nz(DSum("Invoiceamount","invoices","[customerid]=" & [CustomerID] & "and" & "[credit]= " & True  &  " and [invoicetime]<#" & [receipttime] & "#"),0)
    and
    Code:
    =nz(DSum("Invoiceamount","invoices","[customerid]=" & [CustomerID] & "and" & "[credit]= " & True  &  " and [invoicetime]<" & [receipttime] & ""),0)
    both function returned the same value but I need the accurate one. I am afraid in future to get different values.

    What does the # really do ?

    receipttime data type is date (long time).

    Any comments would be appreciated.


    THANK YOU IN ADVANCE


    REGARDS
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    The pound sign tells Access that receipttime is defined as a DateTime DataType.

    Linq ;0)>

    Comment

    • nico5038
      Recognized Expert Specialist
      • Nov 2006
      • 3080

      #3
      To get all info on date/time you should checkout:
      The Access Web - Date/Time: Index of Articles

      Nic;o)

      Comment

      Working...