Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, July 5, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Reading Excel File - SLX read the "field" and returns blank..
Rafael S.
Posts: 66
 
Reading Excel File - SLX read the "field" and returns blank..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Nov 10 5:15 AM

Hello people,


 


Im stuck in a screen that i have to make... Its a "import screen"... Import a excel file to the database.. ok.. seems quite simple..


But i dont know why, saleslogix reads the fields and return blank... but they arent... The field have data...........Someone know a way to fix that?


 


The code is:


 


<p> 

 


 'Open Excel Driver

    Set ObjConn = CreateObject("ADODB.Connection")
    sProvider = "DRIVER=Microsoft Excel Driver (*.xls);" & "DBQ=" & sPath
    objConn.Open sProvider

    If err.number <> 0 Then
       ErrorCheck("SalesLogix could Not open Microsoft Excel Driver. Please, close this window and try again.")
       err.number = 0
       Exit Function
    End If

 


 'Open Excel Table
 strSQL = "SELECT NAME, TITLE from [Plan1$]"
 Set objRS = objConn.Execute(strSQL)


 While Not (objRS.EOF or objRS.BOF)


      .Fields("CUST_NAME").Value = objRS.Fields("NAME").value
      .Fields("CUST_TITLE").Value = objRS.Fields("TITLE").value


      objRS.MoveNext
 Wend


 



 


 


 But this field (   objRS.Fields("TITLE").value   ) returns blank... And in the excel file is not blank... someone can help?


 


thanks!


 


Rafael

[Reply][Quote]
Rafael S.
Posts: 66
 
Re: Reading Excel File - SLX read the "field" and returns blank..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Nov 10 6:53 AM
fiogf49gjkf0d

nobody? Frown

[Reply][Quote]
Deepika
Posts: 14
 
Re: Reading Excel File - SLX read the "field" and returns blank..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Nov 10 10:06 PM
fiogf49gjkf0d

Hi Rafael,


I think u just try to comment the name field and try to execute .Then u should be able to read Title.


Thanks


Deepika

[Reply][Quote]
Rafael S.
Posts: 66
 
Re: Reading Excel File - SLX read the "field" and returns blank..Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Nov 10 7:30 AM

I have already did this.... dont work... Im thinking in change the read method...im using ADODB..i dont know if SLX reads in other ways, but i will search...if you know, end to me please...


 


thanks


 


Rafael

[Reply][Quote]
Rafael S.
Posts: 66
 
Success!!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Nov 10 5:05 AM

Hello Everyone!!! I found a solution...


 


I changed the Query that i was using and include the CStr function to convert the field do String....it works Laughing..


 


My query to get the data from Excel is this:


  strSQL = "SELECT NAME, CStr(CODE) as VCODE, JOB, SECTOR, PHONE from [Plan1$]"


 


thanks for all who tried to help me!


 


Rafael S. Tongue out

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 7/5/2025 11:40:29 PM