[mso] Re: Word 2002: VB forms, combo boxes and merging with outside data!

  • From: "Dian D. Chapman" <dian@xxxxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Fri, 16 Sep 2005 06:14:22 -0500

> I didn't know you could make a 2
column combo in Word, 

Yup. Check this specific link below and you'll see a referral update dialog.
Granted, I'm using a listbox, but it is populated with data from a DB query
result...and you'll see there are cols. One for the checkbox, an ID, a
product and something else I can't remember. 

http://www.mousetrax.com/Consulting_Solutions.html#tracking 

There are other examples, but being grayed out for client security, it's
hard to tell. But it's a good way to add several pieced of info so the user
can view the correct entry...when selected, you pick up the Record Num of
the selection. Then you can requery a new RS on that ID to get more complete
data on that record, if needed.


Dian D. Chapman, Technical Consultant
Microsoft MVP, MOS Certified
Editor/TechTrax Ezine

Help Katrina's Homeless Animals: http://www.mousetrax.com/pets.html

Free Tutorials: http://www.mousetrax.com/techtrax
Optimize your business docs: http://www.mousetrax.com/consulting
Learn VBA the easy way: http://www.mousetrax.com/techcourses.html 


-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf
Of Cathy.Evans@xxxxxxxxx
Sent: Wednesday, September 14, 2005 8:07 AM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Word 2002: VB forms, combo boxes and merging with outside
data!


Fantastic, thanks, Lisa!   I sure do wish I could start from Access, but in
this case it needs to be reversed from the way I usually set up the forms
(access 1st!).  Dian sent some great links to get me started on connecting
to a data source, I'll use access for that part.  I'm going to try that
route for the project lookup, however, I didn't know you could make a 2
column combo in Word, so that is a great answer to some other parts of the
form I was needing to resolve once I got the project lookup out of the way.
Thank you very much, Cathy


 

                      "Green"

                      <1z@xxxxxxxxxxxxxx>      To: <mso@xxxxxxxxxxxxx>

                      Sent by:

                      mso-bounce@freelist      cc:

                      s.org

                      09/13/2005 06:33 PM      Subject:  [mso] Re: Word
2002: VB forms, combo boxes and merging 
                      Please respond to           with outside    data!

                      mso

 
..... 
 





Hi Cathy,

If this was ms access you could prob use sub forms.... but I'm
assuming it isn't.

I think you are right in thinking you need to use if.. then.. else.

Personally, I would probably use a 2 column combo box and populate it
with the project name and description. You don't actually need to show
the description if you don't want to but it's there and "connected" to
the correct project that's been chosen in the combo box.

It's a while since I did anything like this so I'm perhaps not
remembering exactly but...

The code may go something like....
... and the number of columns needs to be set in the combo box
properties...

  .Additem ""
  .List(ListIndex,0).text = "Project00"
  .List(ListIndex,1).text = Description00

... and so on.

If this makes not a lot of sense get back and we'll delve a bit.

HTH
Lisa







----------------------------------------------------------------------------
-------------------------
The information transmitted is intended only for the person
or entity to which it is addressed and may contain proprietary,  
business-confidential and/or privileged material.
If you are not the intended recipient of this message you 
are hereby notified that any use, review, retransmission, 
dissemination, distribution, reproduction or any action taken
in reliance upon this message is prohibited. If you received
this in error, please contact the sender and delete the 
material from any computer.  Any views expressed in this message
are those of the individual sender and may not necessarily reflect 
the views of the company.  
----------------------------------------------------------------------------
---------------------------

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes)
in the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also
allow you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation
with instructions.  Once you are a member of the files group, you can go
here to upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 9/13/2005
 

-- 
This email scanned and certified clean by AVG!
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.25/102 - Release Date: 9/14/2005
 

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: