vba MS Access 在报告上绘制表格

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20272302/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-12 00:42:47  来源:igfitidea点击:

MS Access draw table on the report

vbams-accessms-access-2007ms-access-2010

提问by ihorko

How is it possible to draw a table on MS Access Report without RecordSource?

如何在没有 RecordSource 的情况下在 MS Access Report 上绘制表格?

I need very simple table with black borders, that should be flexible depending on the passed text

我需要非常简单的带有黑色边框的表格,根据传递的文本应该灵活

-----------------------------------
| Header1  |  Header 2  |  Notes  |
-----------------------------------
| Text1    |  Text 2    |  Notes  |
|          |            |  text   |
-----------------------------------

There is "Arrange" tab, which contains some table elements, but it's disable.

有“排列”选项卡,其中包含一些表格元素,但已禁用。

How to resolve that?

如何解决?

Thanks a lot

非常感谢

采纳答案by ihorko

Put textbox control on the Report, then right mouse click on the control, choose Layout->Tabular, in that case you will have a table/grid flexible and Enabled "Arrange" tab. Also you can set up borders of the cells.

将文本框控件放在报表上,然后在控件上单击鼠标右键,选择布局->表格,在这种情况下,您将拥有一个灵活的表格/网格并启用“排列”选项卡。您也可以设置单元格的边框。