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 / September 2005

Tip: Looking for answers? Try searching our database.

Using Access as Data Source

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve C - 22 Sep 2005 20:54 GMT
I am creating a Word template with a userform.  The form features a combo box
populated with 175 manufacturers (using .AddItem).  When a manufacturer is
selected, I would like text boxes elsewhere in the userform (for Contact
Name, Address, Phone) to update with the chosen manufacturer's information.  
This gives the user a chance to verify this information before clicking OK
and feeding it into various areas of the document.

Rather than writing 175 Select Case statements to populate the text boxes,
I'm thinking that since I already have the contact info in an Access db
called CompanyInfo in a table called Contacts, I could somehow use this table
to feed the text boxes.  My problem is I don't know the code needed to call
the table and have it populate the text boxes.  How do I do this?  Thanks!
Jonathan West - 22 Sep 2005 21:51 GMT
>I am creating a Word template with a userform.  The form features a combo
>box
[quoted text clipped - 12 lines]
> call
> the table and have it populate the text boxes.  How do I do this?  Thanks!

Although it deals with document forms rather than UserForms, the following
article ought to point you in the right direction regarding interfacing with
Access

Please Fill Out This Form, Part 5
How to link your Word autoform to a database.
http://www.computorcompanion.com/LPMArticle.asp?ID=136

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org 

 
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.