如何将新发票的号码字段重置为0 [英] How to reset a number field to 0 for a new invoice

查看:139
本文介绍了如何将新发票的号码字段重置为0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在使用Access打印发票。在每张发票上都有一个行号列,该列是为产品购买的每一行编号的字段。我想知道是否有办法将每个发票的号码字段(行号字段)重置为0。对于每次购买产品,这将增加1。示例如下:


nvoice# 行号 产品 价格

0123 1糖$ 10.00

0123 2大米$ 10.00

0123 3豌豆$ 5.00

0155 1香蕉$ 2.00

0155 2橙色$ 5.00

0159 1豌豆$ 4.00


感谢您的帮助。以上列表不是我想要的格式。但只需为每件商品标注包含行号的发票。但是,当创建新发票时,将重置行号。还有一种方法可以使用自动编号增加旁边的数字。

Hi All,

I am working in Access to print Invoices. On each invoice there is a line number column which is a field to number each line for a product purchase. I would like to know if there is a way to reset the number field (line-number field) to 0 for each invoice created. This would be incremented by 1 for each product purchase. Example below:

Invoice # line number product price
0123 1 Sugar $10.00
0123 2 Rice $10.00
0123 3 Peas $5.00
0155 1 Banana $2.00
0155 2 Orange $5.00
0159 1 Peas $4.00


Thanks for your help. The above list is not format as I would like. But just picture an invoice with line numbers for each item. But when a new invoice is created the line number is reset. Also is there a way to increment the numbers beside using autonumber.

推荐答案

10.00

0123 2 Rice
10.00
0123 2 Rice


10.00

0123 3豆豆
10.00
0123 3 Peas


5.00

0155 1香蕉
5.00
0155 1 Banana


这篇关于如何将新发票的号码字段重置为0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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