Hi all,
Table: CCTLog
Form: CCTLog
Text box: Run#
I am trying to increment a custom incident number in the form of YY-XXXX (ie: 13-0011). I need to increment the number part by 1 each time a new record is made, and the two digit year part needs to reflect the current year.
I have the following formula in the default value entry of the data tab of the text box 'Run#'
=Format$(Right$(Year(Date())),("[Run#]","CCTLog"),2) & "-" & Format$(Val(Right$(DLast("[Run#]","CCTLog"),4)+1),"0000")
I get an error saying "The expression you entered has a function containing the wrong number of arguments."
I can't figure out what I am doing wrong.
Can someone help?
Thanks,
Rick