Hi
Dean Southgate said:
Arvi,
I think I understand the ("Tasud") as being the name of
your sheets, sheet1,l sheet2 etc. but the bit where your
example says .QueryTables(1) is confusing me.
Does it meen that the table you are querying is in an
Excel spreadsheet? if so how would I change it to access
an ODBC table?
Thanks again
Dean
It's the sheet where I entered the parameters, and from where I invoked the
procedure
Sheet 'Tasud" is the sheet with data, returned by ODBC query (results
table), in it. And it looks like the ODBC query is defined by it's result
table properties somehow (whenever you delete the whole result table, the
query is deleted also). As I always use only one query per sheet, I don't
have to worry, which query table has which index - I'll edit the properties
of QueryTables(1) on this sheet.
I activate the sheet "Tasud" and a cell, always falling into results range
(a cell from header row), while I
have to refresh the result table after editing the CommandText property.
Arvi Laanemets