Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, June 18, 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: Retreiving Of Records from database
Vamsi
Posts: 39
 
Retreiving Of Records from databaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Apr 07 9:37 AM
Dear all,

how to retrieve data from database and capture it in front end using VB script. This is the code i have written but i am getting error pls help me (I am trying to capture accountname from account table in to new text box)


1 sub Retrivedata(Sender)
2 Dim objRS
3 Dim objSLXDB
4 objSLXDB = new SLX_DB

5 Set objRS = objSLXDB.GetNewRecordset
6 objRS.Open "Select Account from sysdba.ACCOUNT where USERFIELD= 'XYZ' ",objSLXDB.Connection 'DNL

7 textbox.Text = objRS.Recordset(0).value
8 objRS.Close


9 End Sub

I am getting error in line number 5 "objSLXDB,object required"

pls help me

thanks in advance

with regards
vamsi
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Retreiving Of Records from databaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Apr 07 12:35 PM
fiogf49gjkf0d
This one is very obvious. You are missing the Set statement on line 4. The error comes on line 5 as you are trying to use it.

Should be:
Set objSLXDB = new SLX_DB


[Reply][Quote]
Kannan Srinivasan
Posts: 49
 
Re: Retreiving Of Records from databaseYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Apr 07 6:20 AM
fiogf49gjkf0d
You must include the SLX_Database_Support Script in your Form Script. Other than that i dont see any other issue. The fact that the class SLX_DB is defined in the above mentioned Global Script you would need to include it.
[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): 6/18/2025 6:30:49 AM