将Word中的单词链接到访问数据库 [英] Link a word in Word to an access database

查看:156
本文介绍了将Word中的单词链接到访问数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


在单词中是否有单词将单词或句子链接到访问中的单元格? 基本上我希望用户能够输入:


袋子里有7个苹果。 然后在稍后的某个时间我可以运行一个在数据库中查找并改变"7"的宏。无论新号码是什么。


如果没有一种简单的方法可以自动执行此操作,我是否可以通过某种方式标记单词"7"。这样我就可以使用VBA循环来搜索所有链接的单词,然后我可以使用SQL通过VBA查询数据库。 这意味着我需要
来"标记"这个单词,不仅告诉我它是链接的,还要链接到数据库中的哪个条目。 我知道powerpoint能够为幻灯片/对象添加标签。 我可以这样做吗?


感谢您的帮助!

解决方案

查看文章"访问数据库并在Word文档中插入您在那里找到的数据":


http://www.word.mvps.org/FAQs/InterDev/GetDataFromDB.htm




- 希望这有帮助。


Doug Robbins - Word MVP,$
dkr [atsymbol] mvps [dot] org

通过社区大桥发布


" Danakona"在消息新闻中写道:9b22cd13-2e1d-4dcc-820b-912959a580f0@communitybridge.codeplex.com ...

你好,


在单词中是否存在将单词或句子中的单词或句子链接到访问中的单元格? 基本上我希望用户能够输入:


袋子里有7个苹果。 然后在稍后的某个时间我可以运行一个在数据库中查找并改变"7"的宏。无论新号码是什么。


如果没有一种简单的方法可以自动执行此操作,我是否可以通过某种方式标记单词"7"。这样我就可以使用VBA循环来搜索所有链接的单词,然后我可以使用SQL通过VBA查询数据库。 这意味着我需要
来"标记"这个单词,不仅告诉我它是链接的,还要链接到数据库中的哪个条目。 我知道powerpoint能够为幻灯片/对象添加标签。 我可以用文字来做这件事吗?


感谢您的帮助!




Hello,

Is there anyway in word to link a word or sentence in word to a cell in access?  Basically I want a user to be able to type:

There are 7 apples in the bag.  Then at some later time I can run a macro that looks in a database and changes "7" to whatever the new number is.

If there is not an easy way to do this automatically, is there some way I can tag the word "7" so that I can use a VBA loop to search for all the linked words, and then I can use SQL to query the database with VBA.  This would mean I need to 'tag' the word to not only tell me it is linked, but also to which entry in the database it is linked to.  I know powerpoint has the ability to add tags to slides/objects.  Can I do this in word?

Thanks for your help!

解决方案

See the article "Access a database and insert into a Word document the data that you find there" at:
http://www.word.mvps.org/FAQs/InterDev/GetDataFromDB.htm


-- Hope this helps.

Doug Robbins - Word MVP,
dkr[atsymbol]mvps[dot]org
Posted via the Community Bridge

"Danakona" wrote in message news:9b22cd13-2e1d-4dcc-820b-912959a580f0@communitybridge.codeplex.com...

Hello,

Is there anyway in word to link a word or sentence in word to a cell in access?  Basically I want a user to be able to type:

There are 7 apples in the bag.  Then at some later time I can run a macro that looks in a database and changes "7" to whatever the new number is.

If there is not an easy way to do this automatically, is there some way I can tag the word "7" so that I can use a VBA loop to search for all the linked words, and then I can use SQL to query the database with VBA.  This would mean I need to 'tag' the word to not only tell me it is linked, but also to which entry in the database it is linked to.  I know powerpoint has the ability to add tags to slides/objects.  Can I do this in word?

Thanks for your help!


这篇关于将Word中的单词链接到访问数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆