G
Guest
Good day folks,
I have a table called "Serial_Numbers" wich contains the following fields :
Week_number - Data type : TEXT with Default Value ->DatePart("ww",Date(),1)
Year_number - Data type : TEXT with Default Value -> Format(Date(),"yy")
Seq_number - Data type : TEXT
By knowing that
Week_number = 43
Year_number = 04
Seq_number = 001;
how can I tell the field "Seq_number" to increment itself FOR "Week_number"
= 43 and then reset itself when "Week_number" = 44
Here's a sample of what I should see :
Week_number Year_number Seq_number
43 04 001
43 04 002
43 04 003
44 04 001
What is the best way to do it? from a query with SQL or with VB coding?
Thanks for your help
I have a table called "Serial_Numbers" wich contains the following fields :
Week_number - Data type : TEXT with Default Value ->DatePart("ww",Date(),1)
Year_number - Data type : TEXT with Default Value -> Format(Date(),"yy")
Seq_number - Data type : TEXT
By knowing that
Week_number = 43
Year_number = 04
Seq_number = 001;
how can I tell the field "Seq_number" to increment itself FOR "Week_number"
= 43 and then reset itself when "Week_number" = 44
Here's a sample of what I should see :
Week_number Year_number Seq_number
43 04 001
43 04 002
43 04 003
44 04 001
What is the best way to do it? from a query with SQL or with VB coding?
Thanks for your help