Thank you for the replies to my previous question - I have now sorted my previous issue but in turn have now encountered a second issue.
The error i am getting is when the "GetData" sub routine is being run. The "btQuery" once clicked calls the "GetData" routine and queries the sql...
Yes that is exactly what I want to do - call the method / code from 'GetData' when I click the 'btQuery' button - but, No, I am not entirely sure how to do this.
I have been advised that if I use the code below within my 'btQuery' sub it should work but advisor is not sure...
Raising a seperate sub routine from a seperate button
I wonder if anyone can help me with the following problem,
I have created a private sub routine (see below)
PrivateSub GetData(ByVal direction AsString)
this is used to query an sql database using ADO.net and create a...