我正在使用Access 2010前端和SQL Server 2008后端的数据库中工作 . 我创建了一个子窗体,它将显示特定查询中的所有记录 . 每当添加新记录时,存储过程用于创建和刷新查询 . 这是刷新和创建表的存储过程 .

Create Procedure ReqryInstrumentInterfacelog As
IF EXISTS (SELECT * 
       FROM INFORMATION_SCHEMA.TABLES 
       WHERE TABLE_NAME='qryInstrumentInterfacelog')
BEGIN
    DROP table qryInstrumentInterfacelog
END
SELECT * into qryInstrumentInterfacelog 
FROM tblInstrumentInterfaceLog
GO

我的问题是我的子窗体只显示添加的新记录,并且不会显示表中的所有先前记录 . 这很奇怪,因为当我检查查询创建的表时,它会显示其中的所有记录 . 我之前没有遇到过这个问题,直到我添加了一个父子链接 . 我遵循规范,其中一条说明是在子窗体的属性中添加特定的主/子链接 . 一旦我添加了所有以前的记录将不会显示 . 但我觉得我需要这些链接,因为它使得当你打开表单时子表单是空的,直到你填写某些字段 . 然后,当您按下“处理文件' button logic is done and the subform is filled. Another issue with the parent/child link is in my given spec it tells me to make certain controls and fields the links but when I press the three dot button and it gives me options for master/child links, it doesn' t不要将这些字段作为选项时,我只需手动输入它们 . 这是否意味着这些字段不能成为链接?我确定我遗漏了一些东西所以请随意询问我的问题是:我编写存储过程的方式是否有问题,或者它可能与我的属性设置和子/父链接问题有关 . 更新:规范我试图关注
enter image description here

尽管我在规范中得到了指示,但我被告知我可以自行决定修改说明书