string as an sql statement

  • Thread starter Thread starter mrwigs
  • Start date Start date
M

mrwigs

Guest
hi, i have a string called myString that is an SQL statement. i am trying to run the sql statement as a query with the results appearing in a textbox.
if i put Text3 = myString then the textbox just displays the value of myString.

How do i get the SQL statment to run and then display the results in the textbox.

thanks in advance
adam
 
Hi Adam,

unfortunately it's all a bit more complicated than that. Are you on 2k or 97?
 
You want to set the string to the text box Control Source.

Me.Text3.RowSource = myString
 

Users who are viewing this thread

Back
Top Bottom