Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello. I set up a connection to a SQL view using VBA. I'm pulling
back many fields including a 'work notes' field. The problem is the notes, and any field after the notes field in the select statement are all coming back blank. I'm wondering if the field is too long, and if it is very long then can I enter any code to work around this or to indicate that it IS long and to bring it over anyway. Strangely enough, when I link to the same view in Access and then link Excel to Access I get the data. I was hoping to remove the middleman however and just go directly to the SQL view using VBA in Excel though. Not sure if it will help, but here is the select statement. "SELECT [Date Lead Sent], [Lead Date], Month, individualid, incidentid, Company, [First Name], [Last Name], Address, " & _ "City, State, Zip, Country, Phone, Email, [Campaign Code], Promotion, [Rep Name], [Lead Type], [Product Area], " & _ "[Number of Employees], [Work Notes], Region, Area, AccountInfo " & _ The [Work Notes] field is the one that is coming back blank, as well as the Region, Area, and AccountInfo fields. Any thoughts on this? Thank you Paul |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select Case Statement | Excel Worksheet Functions | |||
If Statement to select a letter | Excel Worksheet Functions | |||
Creating ODBC link within SELECT statement | Charts and Charting in Excel | |||
Wildcard character with Select Statement | Excel Programming | |||
Convert If..Else to Select Case Statement. | Excel Programming |