MS Access 报告显示组合框的 ID,而不是绑定的名称列

发布于 2024-09-13 07:26:08 字数 249 浏览 1 评论 0原文

我工作的公司有一个链接到 SQL Server 表的 Access 数据库。该数据库位于共享网络位置,因此公司中有很多人使用它(有一个恼人的问题,即一次只有一个人可以使用它)。
有多种表单用作数据的前端,并且在一种特定表单上有链接到其他表的组合框。
当在表单上生成报告时,组合框的 ID 位于表单上(GUID),而不是组合框的绑定项。

如何让绑定的项目出现在表单本身上?该解决方案需要易于执行,或者我可以制作一些可以在非技术人员使用时重新生成的东西。

The company I work for have an access database that is linked to a sql server table. The database is on a shared network location so it is used by lots of people in the company (with the annoying problem that only one person can use it at a time).
There are several forms that are used as a front end for the data and on one particular form there are combo boxes that are linked to other tables.
When a report is generated on the form the ID of the combobox is on the form (a GUID) and not the bound item of the combobox.

How can I get the bound items to appear on the form itself? The solution needs to be easy to do or something i can produce that can be regenerated as it's used by non technical people.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

枯寂 2024-09-20 07:26:08

为了使数据库可供许多人使用,只需为每个用户提供一份前端副本即可。

表单几乎不应该用于报告,最好的办法是构建一个引用每个相关表的查询(查询设计窗口将有所帮助),例如,如果组合框包含对人员类型的引用,并且您可能为您的报告构建这样的查询:

SELECT a.ID, a.SName, a.MainAddress, c.PersonType 
FROM Addresses a
INNER JOIN PersonTypes c     ''Or LEFT JOIN if data is missing
ON a.PersonTypeKey = c.PersonTypeKey

如果这不可能,也许您可​​以更详细地解释如何从表单生成报告。

In order to make the database usable by many, simply give each user a copy of the front-end.

Forms should almost never be used for reports, the best thing to do is to build a query (the query design window will help) that references each of the relevant tables, for example, if the combobox contained a reference to person type and you might build a query like this for your report:

SELECT a.ID, a.SName, a.MainAddress, c.PersonType 
FROM Addresses a
INNER JOIN PersonTypes c     ''Or LEFT JOIN if data is missing
ON a.PersonTypeKey = c.PersonTypeKey

If this is not possible, perhaps you could explain in more detail exactly how the report is generated from the form.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文