简体   繁体   English

在查询中创建指定数量的循环并创建报告

[英]create a specified quantity of loops in a query and create a report

I am wanting to create a query in access that asks how many times to run (How many logs do you want to run?). 我想在访问中创建一个查询,询问要运行多少次(您要运行多少个日志?)。 Then input the parameters for each query when it asks (Enter log number:) Then generate a report with the data on the logs that were entered. 然后在询问时输入每个查询的参数(输入日志号:),然后使用输入的日志中的数据生成报告。 I am new to access and have created the query, but need to know how to make it loop in access, if possible, or if I need to study and write a VB module or SQL? 我是新来的访问者,已经创建了查询,但是如果可能的话,或者如果我需要学习和编写VB模块或SQL,是否需要知道如何使其在访问中循环? Thanks for your help 谢谢你的帮助

If you want to run a query multiple times, use VBA. 如果要多次运行查询,请使用VBA。 If you can rework your query so that you can do it all in one, then that's a better option. 如果您可以对查询进行重新处理,以便一次完成所有操作,那么这是一个更好的选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM