G
Guest
My code is as follows:
Dim con2 As ADODB.Connection
Dim sqltext As String
sqltext = some query
Set con2 = CurrentProject.Connection
con2.Execute (sqltext)
Simply put I would like to assign the output from the 'some query' (SELECT)
to a string variable. I've been tearing my hair out trying to find an answer
but I presume there is a simple solution!
Thanks.
Dim con2 As ADODB.Connection
Dim sqltext As String
sqltext = some query
Set con2 = CurrentProject.Connection
con2.Execute (sqltext)
Simply put I would like to assign the output from the 'some query' (SELECT)
to a string variable. I've been tearing my hair out trying to find an answer
but I presume there is a simple solution!
Thanks.