表单在“设计视图”中可见,但在“表单视图”中为空

问题描述 投票:3回答:6

我的表单出现在设计中,但不是表单视图。有700多条记录。

Design View - > DataRecord Source是:

SELECT act.* FROM act;

此查询显示“查询”视图中的所有记录。

没有过滤器,Allow Form View设置为Yes。

是什么导致我的表格不显示?

编辑:我注意到表格非常宽。没有宽度设置,但在设计视图中窗口最大化我必须滚动以查看右边缘。这与它有什么关系吗?

forms ms-access-2007
6个回答
4
投票

此链接可能对您有所帮助。我记得有这个问题,这是因为只读查询。

Why does my form go completely blank?

以下摘录列出了可能发生这种情况的主要条件:

Condition (a) can be triggered in several ways. Examples:

 - The form's Data Entry property is set to Yes. (This means the form shows no existing records, i.e. it is for entering new ones only.)
 - The form has a Filter applied (or is opened with a WhereCondition) that yields no records.
 - The form is based on a query where the criteria yield no records.
 - The form is based on a table that has no records.

Condition (b) can be also be triggered by several things:
 - The form's Allow Additions property is set to No.
 - The form's Recordset Type property is set to something other than Dynaset.
 - The form is based on a read-only query. (If you cannot add a record directly to your query, see Why is my query read-only?)

1
投票

Auto_title_0设置为21“宽。将其调整为实际的表格宽度解决了问题。


1
投票

在表单的设计视图上单击标尺下方的“详细信息”,并确保在“属性表”上将“可见”设置为“是”。


1
投票

尝试这一步。

  1. 单击以选中表单。
  2. 单击“自动调整大小”。
  3. 将值更改为是。

Look into this


0
投票

我也遇到过用于输入查询字符串的表单的问题。问题是没有记录可以回答查询,因为我已将其更改为“选择唯一”查询以消除重复的答案,但它也消除了新的记录集。删除我的SQL中的“Distinct”解决了这个问题。谢谢你的帮助!


-1
投票

我也有这个问题浪费了很多时间,但我能够解决它。

我的原因是我的目标表是空的,我在其上设置了主键,并且我的表单中的控件与这些字段相关。因此,Access无法显示空白主键,也没有显示表单。

如果使用某些数据填充目标表,请保存并关闭表单并再次打开它,将显示控件。

© www.soinside.com 2019 - 2024. All rights reserved.