Re: Searching word tables (column) for a specific word(s) and update bookmark

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



ifnotwhynot2010@xxxxxxxxx was telling us:
ifnotwhynot2010@xxxxxxxxx nous racontait que :

Hello,
I am using word 2000 on Win.XP
I designed a word template with bookmarks and a word table with 5
cols(Prod.No, Descr, price, qty, colr, etc) .
Then I created a userform (frmMyprodts) with a list box to enable user
select the products. This listbox is populated from a products table
in access - with three cols. getting data from the table. 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.
Scenario:, i want to search the word table for a particular word (like
"... light blue") in the Descr. colum ,after the user has selected a
product(s). If a certain product is selected containg these words,
then a standard text should be entered in a bookmark ("bmk_match") in
the template. E.g. if the user selects a product(s) like: Dye light
blue, Dye dark brown, Plastics light blue, etc. Then the standard
text "available once a month" should be inserted into the
bookmark(bmk_match"), otherwise nothing should happen.

I am not clear on the concept.

Where is this bookmark ("bmk_match")?
When does this updating should occur?
Every time a product is added to the table?
When closing the document?
Whenever the user decides it is time to do so?
Are products added to the table one by one whenever the user wants to? Or
all in one go when creating the document?

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@xxxxxxxxxxxxxxxxxxxxxxx
Word MVP site: http://www.word.mvps.org


.



Relevant Pages

  • Re: OLK2K3: Form Printing Assistance (Standard Field).
    ... You want to check the value of strField1 and strField, after you set them, ... This is not the best way to insert text at zero-length bookmark: ... I have verified that the Word Template contains all the ... >>> Dim strTemplate ...
    (microsoft.public.outlook.program_forms)
  • Re: Word template to be filled by the server in aspnet
    ... I have a word template in which I define lots of bookmark (textbox for ... Terry Burns wrote: ... I wonder how I can populate the fields of a Word template in asp.net. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Building Word documents using C#
    ... Thanks - I was assuming that adding text at a bookmark ... I have designed the Word template with embedded bookmarks. ... However in the completed document the original text is always moved. ... This reply is posted in the Newsgroup; please post any follow question or reply ...
    (microsoft.public.office.developer.automation)
  • Re: Filling Word with OLE2
    ... I have to fill the bookmarks/mergefields with data from an Oracle ... I already found codes to go to a specified bookmark and fill it. ... I want to fill all bookmarks/mergefields of a Word template ... Find the next bookmark (couldn't find a method like GoToNextBookmark ...
    (comp.databases.oracle.tools)