Hi all,
I want to call a sql function to return data to my recordset but it is not working in Excel.
I tried calling the sql function in Visual Foxpro query and it is returning data.
Here is my excel code:
My query is working if I remove the function in the sql statement so I am sure it is the problem. Any thoughts why it is not working? Do you have some working excel snippets calling sql function?
Thanks in advance,
Greg
I want to call a sql function to return data to my recordset but it is not working in Excel.
I tried calling the sql function in Visual Foxpro query and it is returning data.
Here is my excel code:
PHP Code:
Set rs = CreateObject("ADODB.Recordset")
rs.Open "Select ibhand,lastrcvqty(250,3780683) as lastqty from mm4r6lib.invbal where inumbr = 3780683 and istore = 250 ", cn_SystemA, adOpenForwardOnly, adLockReadOnly
Thanks in advance,
Greg
Comment