F
Frank Dulk
I have a routine that uses they DAO to generate files
He/she/you works perfectly, however, I created a table to store the checking
accounts making possible a customer as soon as it possesses more than a
bill.
I generated the recordset through a consultation and I caught the code SQL.
Don't work.
The tables are related for CodigoGeral. When I execute the query it tests
that created to obtain the code SQL, the consultation me back all the
registrations.
When I apply in the routine it doesn't generate anything.
Some suggestion?
This doesn't work. But yours I to place in the table associated the field
checking account and it negotiates, there it smokes correctly.
Set rst = db.OpenRecordset("SELECT _
Associados.CodigoGeral, Associados.Nome, _
Associados.FormaPagamento, _
Associados.Desfiliado, _
ContasCorrentes.Agencia, _
ContasCorrentes.ContaCorrente _
FROM Associados INNER JOIN ContasCorrentes ON _
Associados.CodigoGeral _
=ContasCorrentes.CodigoGeral _
WHERE (((Associados.FormaPagamento)=3) AND _
((Associados.Desfiliado)=False)) _
ORDER BY Associados.CodigoGeral")
I don't know it was if very clear.
For a recordset of just a table use:
..FIELDS (NOME_DO_CAMPO ")
When is the recordset composed for more than a table, how me reference to
the fields?
He/she/you works perfectly, however, I created a table to store the checking
accounts making possible a customer as soon as it possesses more than a
bill.
I generated the recordset through a consultation and I caught the code SQL.
Don't work.
The tables are related for CodigoGeral. When I execute the query it tests
that created to obtain the code SQL, the consultation me back all the
registrations.
When I apply in the routine it doesn't generate anything.
Some suggestion?
This doesn't work. But yours I to place in the table associated the field
checking account and it negotiates, there it smokes correctly.
Set rst = db.OpenRecordset("SELECT _
Associados.CodigoGeral, Associados.Nome, _
Associados.FormaPagamento, _
Associados.Desfiliado, _
ContasCorrentes.Agencia, _
ContasCorrentes.ContaCorrente _
FROM Associados INNER JOIN ContasCorrentes ON _
Associados.CodigoGeral _
=ContasCorrentes.CodigoGeral _
WHERE (((Associados.FormaPagamento)=3) AND _
((Associados.Desfiliado)=False)) _
ORDER BY Associados.CodigoGeral")
I don't know it was if very clear.
For a recordset of just a table use:
..FIELDS (NOME_DO_CAMPO ")
When is the recordset composed for more than a table, how me reference to
the fields?