Hello.
I have this code and the first sql it returns me data, in the second give's me the error "A syntax error has occurred"
Set Mail = New ADODB.Connection
Set Mail_Rec = New ADODB.Recordset
Mail.ConnectionString= "DSN=Teste;UID=teste;PWD=teste;DATABASE=teste"
Mail.Open
Mail_Rec.Open "select t_cuno,t_nama,t_net from ttccom010200 where t_net<>'' order by 1", Mail
Mail_Rec.Open "select t_cuno,t_nama,t_net INTO cliente IN 'C:\mail.mdb' from ttccom010200 where t_net<>'' order by 1", Mail
There is someone can help me?
Thanks any way.
Diogo Reis
I have this code and the first sql it returns me data, in the second give's me the error "A syntax error has occurred"
Set Mail = New ADODB.Connection
Set Mail_Rec = New ADODB.Recordset
Mail.ConnectionString= "DSN=Teste;UID=teste;PWD=teste;DATABASE=teste"
Mail.Open
Mail_Rec.Open "select t_cuno,t_nama,t_net from ttccom010200 where t_net<>'' order by 1", Mail
Mail_Rec.Open "select t_cuno,t_nama,t_net INTO cliente IN 'C:\mail.mdb' from ttccom010200 where t_net<>'' order by 1", Mail
There is someone can help me?
Thanks any way.
Diogo Reis