CurrentDb() in adp file

  • Thread starter Thread starter TheBest51
  • Start date Start date
No, you can't use that approach in an adp. You didn't give the SQL Server
version, but check books online to see how to query the system for that
info. In SQL 2005 for example there is a system view named
INFORMATION_SCHEMA.VIEWS that has a view_definition column. Note that it
will be null if the view definition exceeds 4000 characters. There are other
system tables if you're using a different version.

The closest thing to currentdb in an adp is currentproject, but it's not the
same object since you're not dealing with any Access storage.
 
Back
Top