C
cw via AccessMonster.com
I know this type is question is constantly asked & searched for, but I have
had no luck with any of the other posts.
- I have the following field: bidNumbr (text type)
- which needs to be formatted like this: 071202-1
(where 07=Year, 12=Month, 02=Day and 1=Increment by bid per day)
- This field will be auto-filled by Access for each new Bid entered.
Currently, I have the following code in the bidNumbr Default Value field
=Format(Date(),"yymmdd") & "-" (This works fine to properly create the Date
part of the field, but not the Auto-Incrementing value after the Dash..?)
Any ideas on how to:
1) Have Access look at the Bids already on file for today in tblBids
2) And Auto-Fill the bidNumbr field with the properly formatted yymmdd -1, -2,
-3, etc value?
Here are some examples:
071202-1 (If this is the first Bid entered today)
071202-2 (If this is the second Bid entered today)
071202-3 (If this is the third Bid entered today)
071203-1 (If this is the second Bid entered next day)
Thanks,
cw
had no luck with any of the other posts.
- I have the following field: bidNumbr (text type)
- which needs to be formatted like this: 071202-1
(where 07=Year, 12=Month, 02=Day and 1=Increment by bid per day)
- This field will be auto-filled by Access for each new Bid entered.
Currently, I have the following code in the bidNumbr Default Value field
=Format(Date(),"yymmdd") & "-" (This works fine to properly create the Date
part of the field, but not the Auto-Incrementing value after the Dash..?)
Any ideas on how to:
1) Have Access look at the Bids already on file for today in tblBids
2) And Auto-Fill the bidNumbr field with the properly formatted yymmdd -1, -2,
-3, etc value?
Here are some examples:
071202-1 (If this is the first Bid entered today)
071202-2 (If this is the second Bid entered today)
071202-3 (If this is the third Bid entered today)
071203-1 (If this is the second Bid entered next day)
Thanks,
cw