Using DAO from Microsoft Word

K

keithb

There seems to be no VBA help topics showing the Objects, Methods, and
Properties need to use DAO from a Microsoft Word VBA program and I get no
results when search MSDN. Where can I find documentation???? Specifically, I
need to know the syntax for passing a query string to the OpenRecordset
method. Thanks in advance for any help you can offer.

Thanks,

Keith
 
J

Jezebel

DAO is not part of Word, which is why Word doesn't include any help on it.
(You can use DAO in Word if you add a reference to the DAO library. -- but
that's true of many libraries.) If the help is no longer in MSDN it's
because (presumably) Microsoft are promoting ADO instead. None the less, you
should be able to find a copy of the DAO help file on the net somewhere. Do
a Google for "DAO Help File".

If you add a reference to the DAO library, you can use the object browser to
see the objects, methods, and properties.
 
P

Perry

Properties need to use DAO from a Microsoft Word VBA program and I get no
results when search MSDN

??

Use:
msdn.microsoft.com/library
for queries like this.
A wealth of information...

Word/DAO
http://msdn.microsoft.com/library/d...d11/html/wohowUsingDAOWithWord_HV05214010.asp

DAO to ADO
http://msdn.microsoft.com/library/d...-us/vbaac11/html/achowDAOToADO_HV05267115.asp

DAO in Visual Studio
http://msdn.microsoft.com/library/d...econdataaccessusingdataaccessobjects(dao).asp

Off the Word MVP site
http://word.mvps.org/faqs/interdev/FillListBoxFromXLDAO.htm

-------------------------------------
Krgrds,
Perry

System parameters:
POS: WinXP x64
MSO: MSOffice System
DEV: VS7 (dotnet)
-------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top