PC Review


Reply
Thread Tools Rate Thread

CurrentDb() in adp file

 
 
TheBest51
Guest
Posts: n/a
 
      18th Mar 2009
Hi all ,
I've this problem : I need to extract the SQL source of some view from SQL
SERVER's database, to make that I'll use:
http://databases.about.com/b/2007/11...ext-in-vba.htm

that's works great in mdb file but my project is adp !! , how can I
reference a Database object(DAO) in adp? is it possible ?
thanks in advance
Regards
 
Reply With Quote
 
 
 
 
Paul Shapiro
Guest
Posts: n/a
 
      18th Mar 2009
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.

"TheBest51" <(E-Mail Removed)> wrote in message
news:6409C00C-13DF-435C-A1A2-(E-Mail Removed)...
> Hi all ,
> I've this problem : I need to extract the SQL source of some view from SQL
> SERVER's database, to make that I'll use:
> http://databases.about.com/b/2007/11...ext-in-vba.htm
>
> that's works great in mdb file but my project is adp !! , how can I
> reference a Database object(DAO) in adp? is it possible ?
> thanks in advance
> Regards


 
Reply With Quote
 
TheBest51
Guest
Posts: n/a
 
      18th Mar 2009
Thanks Thanks a lot !!! your Reply has been very useful and helpful !!!
Thanks

"Paul Shapiro" wrote:

> 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.
>
> "TheBest51" <(E-Mail Removed)> wrote in message
> news:6409C00C-13DF-435C-A1A2-(E-Mail Removed)...
> > Hi all ,
> > I've this problem : I need to extract the SQL source of some view from SQL
> > SERVER's database, to make that I'll use:
> > http://databases.about.com/b/2007/11...ext-in-vba.htm
> >
> > that's works great in mdb file but my project is adp !! , how can I
> > reference a Database object(DAO) in adp? is it possible ?
> > thanks in advance
> > Regards

>
>

 
Reply With Quote
 
11122
Guest
Posts: n/a
 
      18th Mar 2009


"TheBest51" <(E-Mail Removed)> ???????????????? news:6409C00C-13DF-435C-A1A2-(E-Mail Removed)...
> Hi all ,
> I've this problem : I need to extract the SQL source of some view from SQL
> SERVER's database, to make that I'll use:
> http://databases.about.com/b/2007/11...ext-in-vba.htm
>
> that's works great in mdb file but my project is adp !! , how can I
> reference a Database object(DAO) in adp? is it possible ?
> thanks in advance
> Regards

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
currentdb =?Utf-8?B?QnJldA==?= Microsoft Access VBA Modules 1 13th Jul 2006 10:26 PM
How do I display file path in Access 2003 (was currentdb.name) =?Utf-8?B?RGF2aWQgb2YgSGVubGV5Y29s?= Microsoft Access Reports 4 4th Aug 2005 12:34 PM
What's the difference to CurrentDb or OpenDatabase(CurrentDb.Name)?? Fia Microsoft Access Forms 2 23rd Mar 2005 02:13 PM
what's the diffrence between using CurrentDB or Opendatabase(CurrentDB) Fia Microsoft Access Form Coding 1 23rd Mar 2005 01:43 PM
CurrentDB Robert Microsoft Access ADP SQL Server 11 18th Dec 2003 11:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:52 AM.