报告/查询自动编号字段? (Access 2007) [英] Report/query autonumber field? (Access 2007)

查看:158
本文介绍了报告/查询自动编号字段? (Access 2007)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,在这里。

我的查询得到了理顺,他们以我想要的格式返回我想要的数据(最后)。数据按字母排序。按ProjectName降序。每个项目都有一个唯一的ProjectID,它是最左边的字段。按ProjectName排序意味着ProjectID字段不是数字顺序。

ProjectID

109156

105428

2812

117973

老板想要一个名为''ItemNumber'的序数字段,简直就是

1

2

3

...

n


我该怎么办?这个?我可以让Query生成这样的字段吗?我能在报告中做些什么吗?它必须在报告中唯一的位置,但如果它也在查询中也没有问题。


TIA,

Brian


ps

(Boss = VP)> (Me = Temp./Part-timer)

解决方案

您好kujito,


您可能想看看这个链接:**按照网站规则删除链接**


我无法让它正常工作(如果你在查询中导航,该功能将继续增加) ,但它可能会让你朝着正确的方向前进。如果我有时间,我可能会在以后搞乱它。


为了在报告中按顺序编号记录,你可以在这里查看这篇文章:
http://support.microsoft.com/kb/209567


< blockquote>谢谢Denburt!

完美!


Ok, here it goes.
I got my queries straightened out and they return the data I want in the format I want(finally). The data are sorted alpha. descending by ProjectName. Each project has a unique ProjectID, which is the left-most field. Sorting by ProjectName means that the ProjectID field is not in numerical order.
ProjectID
109156
105428
2812
117973
The boss wants to have an ordinal number field called something like ''ItemNumber'' and is simply
1
2
3
...
n

How can I go about this? Can I make the Query generate such a field? Is it something that I can do in the Report? The only place it MUST be is in the Report, but there is no problem if it is in the query as well.

TIA,
Brian

p.s.
(Boss = VP) > (Me = Temp./Part-timer)

解决方案

Hi kujito,

You might want to check out this link: ** Link removed as per site rules **

I couldn''t get it to work properly for me (the function will continue to increment if you navigate around in the query), but it may get you headed in the right direction. I may mess with it later if I have time.


For sequentially numbering the records in a report you can take a look at this article here:
http://support.microsoft.com/kb/209567


Thanks Denburt!
Perfect!


这篇关于报告/查询自动编号字段? (Access 2007)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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