ADP equivalent for CurrentDB

  • Thread starter Thread starter Peter Wone
  • Start date Start date
P

Peter Wone

I realise that CurrentDb returns Nothing because there is no current Jet
database in an ADP. So how does one get a reference to the default database
connection? In bound forms I've been using Me.Recordset.ActiveConnection but
in an unbound form this doesn't work for fairly obvious reasons.
 
I realise that CurrentDb returns Nothing because there is no current Jet
database in an ADP. So how does one get a reference to the default database
connection? In bound forms I've been using Me.Recordset.ActiveConnection but
in an unbound form this doesn't work for fairly obvious reasons.

As I recall, it's CurrentProject.Connection
 
Back
Top