组号 [英] Group Numbers

查看:105
本文介绍了组号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用访问数据库,并且客户可以使用多年的时间

并希望将它们组合在一起。例如:


1990

1991

1992

1993

1994

1998

以及如何将它们显示为1990-1994,1998。

我该怎么做?

I am using an access database and have range of years for customers
and want to group them together. for example:

1990
1991
1992
1993
1994
1998
and what to display them as 1990-1994, 1998.
How do I do this???

推荐答案

这是在报告或查询中吗?

Is this to be in a Report or Query?


查询


Anthos写道:
Query

Anthos wrote:

这是报告还是查询?
Is this to be in a Report or Query?


2007年2月22日20:36:42 -0800,Chris < ch ********* @ gmail.comwrote:


这在查询中并不容易。我会在VBA中执行此操作:在此表/查询上打开一个

记录集,按年份排序,并迭代

列表,将当前值与之前的值进行比较,所有while

连接输出字符串。


-Tom。

On 22 Feb 2007 20:36:42 -0800, "Chris" <ch*********@gmail.comwrote:

That''s not easy to do in a query. I would do this in VBA: open a
recordset on this table/query, sort by year, and iterate over the
list, comparing current value with previous one, all the while
concatenating the output string.

-Tom.


>我正在使用访问数据库,并且为客户提供了多年的工作范围,并希望将它们组合在一起。例如:

1990年
1991年
1993年
1994年

以及展示它们的内容as 1990-1994,1998。

我该怎么做?
>I am using an access database and have range of years for customers
and want to group them together. for example:

1990
1991
1992
1993
1994
1998
and what to display them as 1990-1994, 1998.
How do I do this???


这篇关于组号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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