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 / SQL Server / ADP / September 2003

Tip: Looking for answers? Try searching our database.

Can I use DAO in .ADP to SQL Server ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
S.L. - 18 Sep 2003 07:58 GMT
I've no experience writing code by using ADO before. I usualy uses DAO to
access .MDB database. I deciding to use Access 2002 Project and SQL Server
2000.

I'ld like to ask you. What happen if In .ADP code, I not reference to ADO
object library but references to DAO object library instead ? Can I still
access data in SQL Server ? Or I should not do that, Why ?

(if not necessary, It good for me to not waste time to study programming
using ADO)
BJ Freeman - 18 Sep 2003 13:52 GMT
When an ADP is opened, it usually connect to the SQL Server. This is set up
in the File->connection dialog.

to do something on the SQL server, use
dim RS as  ADODB.Recordset

set RS = currentproject.connection.execute( "Select * from XmlTable")  for
read-only or

RS.Open "Select * from XmlTable", currentproject.connection, adOpenKeyset,
adLockOptimistic
for r/w

> I've no experience writing code by using ADO before. I usualy uses DAO to
> access .MDB database. I deciding to use Access 2002 Project and SQL Server
[quoted text clipped - 6 lines]
> (if not necessary, It good for me to not waste time to study programming
> using ADO)
 
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.