I have a Function that works in a cell.
=dbFetch("SQL-string";"Database_name";OutputCell;;;)
THis function returns: [Retrieved 1 Rows from dBase....] in the cell where it is placed
It puts the outcome of the DBQuery in the cell defined as OutputCell
THis works!
But: For several reasons it's not that convenient to do all the DBQuery in a worksheet.
It would be better if i could write some VBA code that uses the dbListFetch function
SO: How can i use this in VBA
I tried
Testvar = [dbFetch("SQL-string";"Database_name";OutputCell;;;)]
Testvar value becomes: Error 2015
OutputCell doesn't seem to get a value
Anyone any idea
Bookmarks