Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / November 2006

Tip: Looking for answers? Try searching our database.

how to produce code-generated queries in ADP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Allen_N - 06 Nov 2006 06:09 GMT
I have converted an MDB to an ADP because it was too big for the PC. However,
I can't see how to port the code that I used to generate SQL queries. As far
as i can tell, 'views' do not have an 'SQL' property.

Where do I go from here?

Thanks!
Brendan Reynolds - 06 Nov 2006 10:30 GMT
You can use DDL ...

Public Sub CreateView()

   CurrentProject.Connection.Execute _
       "CREATE VIEW TestView AS SELECT * FROM dbo.Employees"

End Sub

Signature

Brendan Reynolds
Access MVP

>I have converted an MDB to an ADP because it was too big for the PC.
>However,
[quoted text clipped - 5 lines]
>
> Thanks!
Allen_N - 06 Nov 2006 21:36 GMT
Thanks, Brendan. Just what I needed.

I have 2 books that touch on ADP (Balter's 'Mastering MSO Access 2003' and
Allison/Berkowitz's 'SQL for MS Access'), but both of them are actually
pretty useless on the subject: just enough info to trick me into reading the
chapters before realising that all I got was an appetiser.

> You can use DDL ...
>
[quoted text clipped - 14 lines]
> >
> > Thanks!
Van T. Dinh - 06 Nov 2006 10:32 GMT
I don't use ADP but view definitely has SQL String.  If you look at a View
in Design View in Access, use the Menu command View / Show Panes / SQL to
display the SQL pane.  There is also an equivalent button (with the letter
"SQL" on the "View Design" Toolbar.

I am not sure of what you meant by your first sentence???

Do you have Front-End and Back-End MDB prior to ADP conversion?  How big was
the Front-End MDB? Back-End MDB?

Note that with the coming Access 2007 version, ADP format does not have the
same set of features as the new ACCDB format ... so you may need to read
more documentation and decide whether converting to ADP is the correct path
for your situation.

Signature

HTH
Van T. Dinh
MVP (Access)

>I have converted an MDB to an ADP because it was too big for the PC.
>However,
[quoted text clipped - 5 lines]
>
> Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.