MS Access 报告显示组合框的 ID,而不是绑定的名称列
我工作的公司有一个链接到 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了使数据库可供许多人使用,只需为每个用户提供一份前端副本即可。
表单几乎不应该用于报告,最好的办法是构建一个引用每个相关表的查询(查询设计窗口将有所帮助),例如,如果组合框包含对人员类型的引用,并且您可能为您的报告构建这样的查询:
如果这不可能,也许您可以更详细地解释如何从表单生成报告。
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:
If this is not possible, perhaps you could explain in more detail exactly how the report is generated from the form.