Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Function To Return Info From As400 Database


Hello everyone,

I have this function :

Function ni(ct1 As String)

Dim ct2, i 'Create some variables
Dim ni_descr

Set ni = CreateObject("Scripting.Dictionary")
ni.Add "A", "A Info" 'Add some keys and items
ni.Add "B", "B Info"
ni.Add "C", "C Info"

ni = ni.keys
ni_descr = ni.items 'Get the items

For i = 0 To ni.Count - 1 'Iterate the array
ct2 = claim_key(i)
ni_descr = ni_descr(i)
If ni= ct1 Then
ni = ni_descr
Exit For
End If
Next
End Function

If I call this function in my worksheet cell Range B2 by enterin
formula "= ni(A2)" where A2 contains "A", it will give me "A Info". I
works perfectly ok.

However, it is quite very limited and I want a similar function t
return information from our AS400 system database containing a hug
data that is continously being updated.

I tried SQL.Request functions, etc, etc, to no avail.

Would appreciate any idea or help.

Thanks

Robi

--
Robin Flore
-----------------------------------------------------------------------
Robin Flores's Profile: http://www.excelforum.com/member.php...fo&userid=1557
View this thread: http://www.excelforum.com/showthread.php?threadid=27133

Reply
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
Duplicate info in a database [email protected] Excel Discussion (Misc queries) 1 April 17th 08 10:02 AM
Link info in one cell to info in several cells in another column (like a database) hansdiddy Excel Discussion (Misc queries) 1 February 22nd 06 02:27 AM
Is there a function that will return info of the cursor location? cbre_bryork Excel Worksheet Functions 3 May 15th 05 02:02 AM
Extracting info from a database J David Southwick Excel Programming 3 December 29th 03 10:19 PM
Database info in Word doc Debra Dalgleish[_2_] Excel Programming 0 September 3rd 03 09:20 PM


All times are GMT +1. The time now is 07:44 AM.

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

About Us

"It's about Microsoft Excel"