Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jon Peltier wrote:
Could you populate a VBA array with the recordset data, then loop through the array to run this: MyArray(i,j) = Val(MyArray(i,j)) to assure that the array is storing numerical values? Much easier to do the work on the server to cast the values as numeric. I don't think the OP advised what the database product is (a DSN hides so much) but if it is SQL-92 compliant e.g. SELECT CAST(my_text_col AS FLOAT) AS converted_numeric_col FROM vipr_weekly_usage_tmp; But if it is Jet then use the VBA5 cast functions e.g. SELECT CDbl(my_text_col) AS converted_numeric_col FROM vipr_weekly_usage_tmp; Jamie. -- |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't graph data with Date Format with hours | Excel Discussion (Misc queries) | |||
How do I graph data daily as a line graph across a calendar format | Charts and Charting in Excel | |||
VLOOKUP/Index&Match data format issue | Excel Worksheet Functions | |||
How do I format the data labels in my stacked bar graph? | Charts and Charting in Excel | |||
Data format issue | Excel Programming |