× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Anybody out there use the SQLREQUEST function in Excel?   I ran across this
function  and thought it would be a great way to get data from the AS/400
into an Excel cell, kinda like a lookup into the AS/400 file.   Sqlrequest
lets you execute an sql statement and returns the data to the cell.    You
have to use the ODBC add-in functions to use it.   The function within the
cell looks like this

=SQLRequest("DSN=QDSN_Hanna;UID=M_AKINS","select whname from hscflib.whpmas
where whsno = 1",,).

I found some documentation at
http://www.sqlmag.com/Articles/Index.cfm?ArticleID=9127.  This would be a
really great function except that I cannot get it to work.  All I get back
is #N/A, which seems to indicate that something is not working.   I know
that I am talking to the AS/400 because I can see that I am connected to a
QZDASOINIT and QZLSFILE job.   Nothing in the job logs though.   Any
thoughts?






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.