从子窗体复制到主窗体中的文本字段 [英] Copy from a subform to a text field in the main form

查看:106
本文介绍了从子窗体复制到主窗体中的文本字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在主窗体上设置了一个未绑定的子窗体。我需要用户能够从子表单中选择项目并让它们以段落样式填充在主表单的绑定文本字段中。


子表单是友好的用户用来以段落形式记录的模板。


我有点像新手。我很感激任何帮助。

谢谢


Juan

I set up an unbound subform on a main form. I need the user to be able to choose items from the sub-form and have them populate in a bound text field in the main form in paragraph style.

The sub-form is kind of like a template the user uses to document in paragraph form.

I am a bit of a novice. I would appreciate any help.
Thank You

Juan

推荐答案

你可以扔掉此代码进入您的子表单'''On Current"事件:
You can just throw this code into your sub form''s "On Current" event:
展开 | 选择 | Wrap | 行号


参见引用子表单上的项目,了解有关子表单引用控件的更多方法。
See Referring to Items on a Sub-Form for more ways to refernce controls on your subform.


Jpatchak,感谢您的见解。我越过了第一个障碍,即获取主窗体的绑定文本框中记录的子窗体选项。我现在遇到的问题是它只记录一个选项。如果用户选择第二个选项,它将替换之前记录的内容。我需要它来记录用户在文本框中选择的所有选项。


谢谢


Juan
Jpatchak, thank you for your insight. I crossed the first hurdle which was getting the subform options recorded in the bound text box of the main form. The problem I have now is that it only records a single option. If the user picks a second option it replaces what it had recorded previously. I need it to record all the options the user picks in the text box.

Thank You

Juan


这篇关于从子窗体复制到主窗体中的文本字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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