如何在不使用子表单的情况下为多个表创建一个数据输入表单? [英] How to create one data entry form for multiple tables without using subforms?

查看:79
本文介绍了如何在不使用子表单的情况下为多个表创建一个数据输入表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为,这是一个简单的数据库设计。简单层次结构中的3个表。

I have, what I think, is a simple db design. 3 tables in a simple hierarchy.

tbl01Doc      tbl02Sec        tbl03Para

DocID(pk)  SecID(pk)    ParaID(pk)

DocName    SectionNum    ParaText

DocDate      SectionTitle    ParaPage

SecID(fk)    ParaID(fk)

tbl01Doc     tbl02Sec       tbl03Para
DocID (pk)  SecID (pk)    ParaID (pk)
DocName    SectionNum   ParaText
DocDate      SectionTitle   ParaPage
SecID (fk)   ParaID (fk)

我想要一个只包含DocName,DocDate,SectionNum,SectionTitle,ParaText和ParaPage文本框的表单。

I'd like a single form that has only text boxes for the DocName, DocDate, SectionNum, SectionTitle, ParaText, and ParaPage.

我可以创建此表单,而不使用子表单,但是section和paragraph字段不允许我在其中键入任何文本。我怀疑这是因为它们在关系中的位置(即与tbl01Doc表的多对一关系)。因为"嵌套的Excel表格",因此我没有多少挖掘子表格。看起来不是首发。

I can create this form, and without using sub-forms, but the section and paragraph fields don't allow me to type any text in them. I suspect this is because of where they are in the relationship (i.e. many to one relationship with the tbl01Doc table). I haven't dug into sub-forms much because the "nested Excel table" look is non-starter.

使用所需外观形式的工作流程如下:

The work flow for the use of the desired looking form is this:

所有表格都是空的,

打开文档并选择要输入数据库的第一段,

打开空表格,

粘贴文档详细信息,

粘贴部分详细信息,

粘贴段落文本和详细信息,

点击提交/保存按钮(保存到表格中的所有数据[所有三个表格的新记录]在这种情况下]和文本框中的文本保留),
$
选择另一个段落进入数据库,

粘贴段落文本字段框中的现有文本,

更新段落详细信息,

不要更改章节或文档详细信息,

点击提交/保存按钮(符合章节和文档详细信息的记录已经存在,所以没有这些表中的新记录,段表中的新记录已创建)

继续对同一文档和部分中的更多段落执行此操作,

更改当你转到其他部分的段落时,部分细节(并且由于数据是不同的新记录将在部分表中创建)[与完成一个文档的文档相同,然后转到另一个文档,仅在那个时候将
文件表中添加了新记录],

退出表格。



我疯了吗?这是多么可行?
b
$ b b b感谢您的帮助,希望我能够很好地描述我的问题和理想的解决方案。



克莱顿

All tables are completely empty,
Open a document and select the first paragraph to enter into the db,
Open empty form,
Paste in the document details,
Paste in the section details,
Paste in the paragraph text and details,
Hit submit/save button (all data saved to tables [new records for all three tables in this case] and text in text boxes remains),
Select another paragraph to enter into the db,
Paste over existing text in paragraph text field box,
Update paragraph details,
Do not change Section or Document details,
Hit submit/save button (records matching the section and document details already exists so no new records in those tables, new record in the paragraph table is created)
Continue doing this for more paragraphs in this same document and section,
Change the section details as you move on to paragraphs in other sections (and since the data is different new records will be created in the section table) [same for the document as you finish with one document and move on to another, only at that time will the document table have a new record added],
Exit the form.

Am I crazy? How doable is this?

Thank you for any assistance and hopefully I've described my problem and desired solution well enough.

Clayton

ps:我会粘贴我的餐桌关系和非工作但漂亮但半工作但不受欢迎的形式的图片但是......我的账户尚未验证。  Cue sad trombone。

ps: I would have pasted pictures of my table relationships and the non-working but pretty and the semi-working but undesirable forms BUT... my account isn't verified yet.  Cue sad trombone.

推荐答案

如果你想坚持这个用户界面设计,也许您可​​以考虑使用未绑定的表单。用户在表单上输入所有必要信息后,您可以使用"保存"按钮。按钮将所有数据发送到相应的表格。

If you want to stick with this user interface design, maybe you can consider using an unbound form. After the user enters all the necessary information on the form, you can use a "Save" button to send all the data into their corresponding tables.

只需2美分......

Just my 2 cents...


这篇关于如何在不使用子表单的情况下为多个表创建一个数据输入表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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