使用可变文件夹名称将Rpt导出到网络上的单个.pdf [英] Export Access Rpt to single .pdfs on network using variable folder names

查看:102
本文介绍了使用可变文件夹名称将Rpt导出到网络上的单个.pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨......我可以使用比我更专业的人的帮助。在Access中处理这类代码对我来说是新的


我想导出一份报告包含多个字母(从Access 2012)到网络上的各个.pdf文件。我知道我需要一个循环来完成这个我以前从未做过的事情。保存(文件夹和子文件夹)中的字母以及文件名的路径应该从写入报告的表或查询中包含的值/列派生。我正在使用ADO命令,但不确定这是最好的选择,因为我发现哪个是最好的ADO或DAO的冲突信息。任何帮助将非常感谢。最诚挚的问候。

Hi...I could use assistance from someone with more expertise than I. Dealing with this type of code in Access is new for me

I am trying to export a report containing multiple letters to people (from Access 2012) to individual .pdf files on the network. I understand I need a loop to do this which I have never done before. The path to save the letters in (folder and subfolder) as well as the file name should be derived from values/columns contained in the table or query which the report is written on. I am using ADO commands but not even sure that is the best option as I have found conflicting information as to which is best ADO or DAO. Any assistance will be so greatly appreciated. kindest regards.

推荐答案

请确认您使用的是2012年访问权限,我听说没有这样的事情。


A一些细节也不错。我们处理什么类型的记录?桌子和报告名称是什么?您希望过滤报告的唯一ID是什么?
Please confirm that you are using access 2012, I have heard of no such thing.

A few details would be nice as well. What type of records are we dealing with? Whats the table and report name? What the unique ID on which you wish to filter the report?


您好。我正在使用Access 2012.


这是一个非常缩放的数据库版本;它将包含更多字母类型,每种类型都有不同的数据。数据库中当前包含的唯一数据是我正在处理的内容(表格,查询,报告和表格。)。


非常感谢所有帮助。

谢谢。





Hi. I am using Access 2012.

Here is a very scaled back version of the database; it will contain many more letter types, each with different data. The only data currently contained in the database is what I am dealing with (table, query, report and form.).

All assistance is greatly appreciated.

Thanks.
附加文件
testdbfolder.zip (107.9 KB,59 views)
Attached Files
testdbfolder.zip (107.9 KB, 59 views)


这是苹果上的吗?

这不是我可以在上下文之外找到任何信息的版本。


此外,除非被要求,大多数这里的人不会从新用户下载附加文件......没有个人信息......只是预防性。


我们需要看到的只是SQL,VBA和详细信息你的桌子的描述与他们之间的任何关系。


ADO与DAO ......

取决于你想做什么......如果你永远不会使用真实的 SQL服务器,如Oracle,SQL-Server等,并将保留在Access结构中,那么你将对DAO结构更加满意。但是,如果您可能正在升级或需要连接到其他类型的服务器,那么ADO。

我同时使用 - 我只是明确声明我的连接和记录集以确保使用正确的结构。
选择ADO或DAO ......


这篇关于使用可变文件夹名称将Rpt导出到网络上的单个.pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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