Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2007

Tip: Looking for answers? Try searching our database.

Connection to FoxPro Database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael P. Griba - 08 Feb 2007 21:50 GMT
I am writing some VBA code that will show a user form when opening the
document it is within.  The form will include a drop down (combobox) list and
a generate report command button.  I have created the document template and
placed the bookmarks necessary to place the queried FoxPro data in.  I have
ran a test without connectivity to the data to check my command button and it
works just fine.  The problem I am having is connecting to the database and
filtering certain information to the drop down list for selection and then
querying based on that selection for further database information from FoxPro.

I am using Word (Office XP/2000/2003) and VBA 6.  I was trying to connect to
the data using the vfpoledb driver, but I am having no luck it appears.  
Could anybody out there help me get started with this?  Thanks.

I have tried the various snippets out there for ADO/OleDB/ODBC, but I am
afraid it is my references that is out of whack.  Thanks in advance for any
help any of you can provide.

Michael P. Griba
West Coast Charters, Inc.
mgriba@westcoastcharters.com
Cindy Winegarden - 10 Feb 2007 19:33 GMT
Please post the code you've got so far and note exactly where it fails to do
what you expected.

Signature

Cindy Winegarden
cindy@cindywinegarden.com

VFP OLE DB: http://msdn2.microsoft.com/en-us/vfoxpro/bb190232.aspx
VFP ODBC: http://msdn2.microsoft.com/en-us/vfoxpro/bb190233.aspx

>I am writing some VBA code that will show a user form when opening the
> document it is within.  The form will include a drop down (combobox) list
[quoted text clipped - 24 lines]
> West Coast Charters, Inc.
> mgriba@westcoastcharters.com
 
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.