在Microsoft Access中显示指定日期范围内的总数

编程入门 行业动态 更新时间:2024-10-28 07:20:09
本文介绍了在Microsoft Access中显示指定日期范围内的总数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

尽管我有使用SQL和使用PHP生成HTML报告的经验,但我还是Microsoft Access的初学者.

Although I have experience with SQL and generating HTML reports with PHP, I'm a relative beginner with Microsoft Access.

我目前正在使用Microsoft Access 2007连接到MSSQL Server 2005.

I'm currently using Microsoft Access 2007 to connect to MSSQL Server 2005.

我有一个报告"表,看起来像这样:

I have a table of Reports that looks something like this:

ReportID DateCreated Author ...

我想创建一个表单,允许用户指定开始日期和结束日期,然后将显示每个作者在指定日期范围内的报告数量.

I'd like to create a form that allows the user to specify a start date and an end date, which would then show the number of reports by each author within the specified date range.

我已经通过首先在组合框中检索唯一作者列表,然后允许用户选择作者,开始日期和结束日期,并在文本框中显示计数来完成此操作.但是,我想知道是否有一种更简便或更好的方法,或者是否有一种方法可以同时显示所有作者及其总数.

I've already done this in a form by first retrieving a list of unique authors into a combo box, and then allowing the user to select the author, start date, and end date, and displaying the count in a text box. However, I was wondering if there was an easier or better way, or if there was a way to display all of the authors and their totals simultaneously.

先谢谢您了:)

推荐答案

您可以将多个字段与组合框关联,因此首先让它们选择日期,然后使用author和total字段初始化组合框.

You can have multiple fields associated with a combobox, so first have them pick the dates, then initialize the combobox with both author and total field.

更多推荐

在Microsoft Access中显示指定日期范围内的总数

本文发布于:2023-10-27 22:30:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1534736.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:范围内   总数   日期   Microsoft   Access

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!