Hi everyone ( again )...
I have a DBGrid Control and I wanna display some data from SQL Server. I established a connection to SQL :
vStrConnection = "xxx"
Set Conn = CreateObject("ADODB.Connection"
Conn.Open vStrConnection
sql = "select * from myTable"
Set rsAux = Conn.Execute(sql)
If Not rsAux.EOF Then
While Not rsAux.EOF
DBGrid1.text= rsAux.Fields("field"
rsAux.MoveNext
Wend
End If
It didn't work, and I couldn't get through this... Can anyone help me??
thanks in advance,
I have a DBGrid Control and I wanna display some data from SQL Server. I established a connection to SQL :
vStrConnection = "xxx"
Set Conn = CreateObject("ADODB.Connection"
Conn.Open vStrConnection
sql = "select * from myTable"
Set rsAux = Conn.Execute(sql)
If Not rsAux.EOF Then
While Not rsAux.EOF
DBGrid1.text= rsAux.Fields("field"
rsAux.MoveNext
Wend
End If
It didn't work, and I couldn't get through this... Can anyone help me??
thanks in advance,