i am working in Excel VBA i need to return the name of the current open query... what is the proper syntax?
using this example, how would i return "This_Query"
using this example, how would i return "This_Query"
Code:
Dim CN as New ADODB.Connection
CM.Open ConnectionString
This_Query = "select....."
Dim rs As New ADODB.RecordSet
rs.Open This_Query, CN
-- process record set --