vegemite
Registered User.
- Local time
- Today, 22:31
- Joined
- Aug 5, 2019
- Messages
- 64
I'm sure this can be done I'm just struggling to think out the process. (I've been out of access for some time & relearning)
I want to concatenate some fields based on elements of my form. STATE=AUTONUMBER+FINANCIAL YEAR
From the the job entered date which self calculates I can get Financial (fiscal) year.
Once the user selects a client (ClientID in main table links to a client table that has "state") I can populate state
The number is the tricky one... What we want to do is the first job in 2020 is STATE1_2020 (or Say QLD01_2020), then they go along like that until it is the next financial year, then the number resets to QLD01_2021...
I want to lookup the previous value from the last record, then check if the Financial year is still the same, then +1. If the Financial year is diff to the last record start at 1.
Then I can concatenate the fields to calculate the unique project number.
BTW this numbering system was not my idea!
I want to concatenate some fields based on elements of my form. STATE=AUTONUMBER+FINANCIAL YEAR
From the the job entered date which self calculates I can get Financial (fiscal) year.
Once the user selects a client (ClientID in main table links to a client table that has "state") I can populate state
The number is the tricky one... What we want to do is the first job in 2020 is STATE1_2020 (or Say QLD01_2020), then they go along like that until it is the next financial year, then the number resets to QLD01_2021...
I want to lookup the previous value from the last record, then check if the Financial year is still the same, then +1. If the Financial year is diff to the last record start at 1.
Then I can concatenate the fields to calculate the unique project number.
BTW this numbering system was not my idea!
