F
Frank Dulk
a help on ADP, I am using Access 2000 with SQL Server 2000.
I made the connections with bank sql, the tables, views, procedures are in
my project window to oh everything well.
It happens that when I will use a code that I use a lot in access without
sql, gives mistake.
I already read a lot of things in the it helps to respect, but unhappily I
didn't get to connect the points.
For instance:
Function Teste()
Dim Rs as Recordset
Set Rs = currentdb.OpenRecordSet("Select * From Clientes")
Rs.FindFirst "ID_Cliente = 10"
If Rs.NoMatch then
MsgBox " Cliente Not found "
Else
MsgBox " Found Customer"
endif
Set Rs = nothing
End Function
I saw in the help that more I cannot use (FindFirst nor NoMatch) oh it is
the problem, I thought about using it is clear (Select * From Clientes Where
ID_Cliente = 1), but in the one that I saw here in the help, every time that
will read the Banco SQL I will have to do a new Connection,
connertion.execute (" Select *...") and for oh... it goes...
As in Access I used the command here Currentdb in ADP doesn't have as using
something of the type, for not being long so much every time tends to do
connection again as bank that is somewhere (67.19.225.8) and to delay
everything again... making the connection... and reading the data
For the that I see here, the data are already connected in the Projeto ADP,
they are not.. would not have as using the method direct OpenRecordSet, or
similar thing...
I made the connections with bank sql, the tables, views, procedures are in
my project window to oh everything well.
It happens that when I will use a code that I use a lot in access without
sql, gives mistake.
I already read a lot of things in the it helps to respect, but unhappily I
didn't get to connect the points.
For instance:
Function Teste()
Dim Rs as Recordset
Set Rs = currentdb.OpenRecordSet("Select * From Clientes")
Rs.FindFirst "ID_Cliente = 10"
If Rs.NoMatch then
MsgBox " Cliente Not found "
Else
MsgBox " Found Customer"
endif
Set Rs = nothing
End Function
I saw in the help that more I cannot use (FindFirst nor NoMatch) oh it is
the problem, I thought about using it is clear (Select * From Clientes Where
ID_Cliente = 1), but in the one that I saw here in the help, every time that
will read the Banco SQL I will have to do a new Connection,
connertion.execute (" Select *...") and for oh... it goes...
As in Access I used the command here Currentdb in ADP doesn't have as using
something of the type, for not being long so much every time tends to do
connection again as bank that is somewhere (67.19.225.8) and to delay
everything again... making the connection... and reading the data
For the that I see here, the data are already connected in the Projeto ADP,
they are not.. would not have as using the method direct OpenRecordSet, or
similar thing...