按记录访问报告 [英] Access report by record

查看:107
本文介绍了按记录访问报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个简单的报告,该报告将从某个表的某个单独记录中返回数据。我是新手,所以我相信这很简单。我有一个表格列出了我桌子的所有记录。我在每条记录上都有一个命令按钮,我想运行一个报表,该报表只返回我引用的单个记录中的数据。任何帮助都会有很大的帮助。谢谢

Hi, I am trying to build a simple report that will return the data from one idividual record of a certain table. I am new to this, So I am sure this is simple. I have a form that lists all records of my table. I have a command button on each record that I want to run a report that only returns the data from the individual record I am referencing. Any help would be greatly appreceiated. Thanks

推荐答案

使用这样的代码,根据点击命令按钮的记录过滤报告。
Use code like this that filters the report based on the record whose command button was clicked.
展开 | 选择 | Wrap | 行号


代码什么都不做。这是我的代码:
The Code does nothing. Here is my Code:
展开 | 选择 | Wrap | 行号


我假设什么都不做你的意思是你没有看到任何记录。请记住,什么都不做。对于尝试通过这样的论坛进行交流时发生的事情并没有很好的描述。


你将不得不替换PrimaryKey。使用您要在其上过滤报告的字段的名称,以及RecordKey使用单个记录中的字段名称。这取决于您的数据。例如,
I assume by "does nothing" that you mean you don''t see any records. Keep in mind that "does nothing" is not very descriptive of what''s happening when trying to communicate over a forum like this.

You''re going to have to replace "PrimaryKey" with the name of the field that you want to filter the report on, and "RecordKey" with the name of the field from the individual record. It depends on your data. For example,
展开 | 选择 | Wrap | 行号


这篇关于按记录访问报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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