Group:  Microsoft Access ยป microsoft.public.access.externaldata
Thread: Searching through one Column and update a bookmark when result found

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Searching through one Column and update a bookmark when result found
"Sophie" <ifnotwhynot2010[ at ]yahoo.com> 07.06.2006 20:28:51
Hello,

I designed a word template with some bookmarks and a word table with 7
cols(Prod.No, Descr, price, qty, colr, etc) .
I've also designed a userform with a list box to enable user select the
products. This listbox is populated from a products table in access.
When the user selects a product from the list, the Prod.No, Descr., and
price details are entered into the word table cells. The remaining
cols. are to be filled later.
However, want to search the table (Descr. colum) , if a certain product
is entered, then a standard text should be entered in a bookmark
("bmk_match") in the template.
Say if the user selects a product like: Dye light blue, Dye dark brown,
Plastics light blue, etc.
How can I write a macro to search through the table and when a product
with only ..light blue
description is found, then a standard text like "available once a
month" should be inserted into a bookmark("bmk_match") in the template.

Thanks
sophia

Re: Searching through one Column and update a bookmark when result found
John Nurick <j.mapSoN.nurick[ at ]dial.pipex.com> 08.06.2006 05:18:07
Hi Sophie,

It sounds as if you are working in entirely in Microsoft Word. This
newsgroup is for questions about using Microsoft Access to work with
external data. I suggest you start by looking at http://word.mvps.org
and then if necessary posting your question in the appropriate Microsoft
Word newsgroup.

On 7 Jun 2006 13:28:51 -0700, "Sophie" <ifnotwhynot2010[ at ]yahoo.com>
wrote:

[Quoted Text]
>Hello,
>
>I designed a word template with some bookmarks and a word table with 7
>cols(Prod.No, Descr, price, qty, colr, etc) .
>I've also designed a userform with a list box to enable user select the
>products. This listbox is populated from a products table in access.
>When the user selects a product from the list, the Prod.No, Descr., and
>price details are entered into the word table cells. The remaining
>cols. are to be filled later.
>However, want to search the table (Descr. colum) , if a certain product
>is entered, then a standard text should be entered in a bookmark
>("bmk_match") in the template.
>Say if the user selects a product like: Dye light blue, Dye dark brown,
> Plastics light blue, etc.
>How can I write a macro to search through the table and when a product
>with only ..light blue
>description is found, then a standard text like "available once a
>month" should be inserted into a bookmark("bmk_match") in the template.
>
>Thanks
>sophia

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net