Re: how to do data type conversions in access
From: Dmitri Ivanov (di2va4nov_at_0_digits_for_spammers_0.aha.ru)
Date: 04/01/04
- Next message: Laurents C. R. Meyer: "ANSI and UNICODE Conversion Problem with ODBC on Windows 98/Me"
- Previous message: Brannon Jones [MS]: "Re: books on odbc"
- In reply to: Rance: "how to do data type conversions in access"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 1 Apr 2004 15:09:29 +0400
Hello Rance,
"Rance" <ntg-rhall@nctc.net> wrote:
R> I have a column in a database called case_count, when the database
R> was setup it was formatted as a charfield with 8 spaces, but the
R> values should have been integers. so, what ever the number of cases
R> the number is padded with enough extra zeros to make 8 chars (eg.
R> '00000034' as opposed to 34)
R> what I need is the result of "SELECT sum(CASE_COUNT) FROM
R> order_detal WHERE order_number='whatever'"
Have you tried the following:
"SELECT sum(CLng(CASE_COUNT))
FROM order_detal
WHERE order_number='whatever'" ?
-- Sincerely, Dmitri Ivanov Common Lisp ODBC interface - www.ystok.ru
- Next message: Laurents C. R. Meyer: "ANSI and UNICODE Conversion Problem with ODBC on Windows 98/Me"
- Previous message: Brannon Jones [MS]: "Re: books on odbc"
- In reply to: Rance: "how to do data type conversions in access"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading