LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default worksheet as SQL linked table (format problem).

I write to a tab on a spreadsheet as part of an automated process.
The data from the source table is INTEGER.
It winds up in the spreadsheet as TEXT.
I even try to force the data as integer.

I'm providing a brief code snippet, simply to show the
simplicity of the SQL. I am pulling my hair out because no
matter what I do, when I open the .xls, the data is there correcly, but
formatted as text.

example 27 is in as '27.
...any help would be much appreciated.
thanks in advance,
...bob

snippet:
update ExecUtilV2...ExecUtilHistoryDetailed
set D1 = convert(int,oh.d1)
, D2 = oh.d2
, D3 = oh.d3
, D4 = oh.d4
, D5 = oh.d5

FROM ExecUtilV2...ExecUtilHistoryDetailed uh
inner join EU_OnHand oh on uh.cccId = oh.cccId
where uh.id 71
and uh.id <133
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel/access problem with linked table fenix4116 Links and Linking in Excel 0 April 29th 09 04:41 PM
DATE FORMAT CHANGE FROM EXCEL WORKSHEET TO PIVOT TABLE Wendy Excel Discussion (Misc queries) 0 November 19th 08 12:54 AM
Sorting non-linked cells in a linked worksheet Gary Excel Discussion (Misc queries) 1 October 25th 08 03:38 AM
Problem with changing formula linked to another worksheet Meenie Excel Worksheet Functions 10 February 29th 08 05:21 PM
Problem with linked Excel table in a word Document jcarlos Excel Discussion (Misc queries) 1 August 5th 05 07:41 PM


All times are GMT +1. The time now is 01:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"