With adp, the queries reside on server side, and often you don't need them at all. Create sql statement in code by concatenation, then execute it.
sql = "select * from my claim inner join transportations on claim.transport_id = transportations.id where claim.ref = " ref
instructions = currentproject.connection.
It should be noted however that Access works best if you let it do data manipulations by itself, i.e. if you bind forms etc. to sql statements, and let Access run those queries when it wants - rather than run them in code.
Main Topics
Browse All Topics





by: jimpenPosted on 2009-09-16 at 16:47:39ID: 25351530
I believe the issue is that the CurrentDB and QueryDef and such all reside under the DAO regime, which is unique to the Access/JET.
---------- ---------- --------
---------- ---------- --------
You'll have to convert it to the ADO version and do something along the lines of
--------------------------
SQL = "CREATE VIEW FLTransportInstructions " & _
"AS " & _
"SELECT * FROM CLAIM WHERE (([CLAIM.Ref])=" & Ref & ");"
executeSQL (SQL, CONNStr)
--------------------------
I'm not up on my ADO so I'll ping some other experts to give you some guidance.