Hello,
(I'm pretty new to database design and everything I know is 100% self taught so I apologise if I'm talking rubbish, any tips are welcome)
I have a table (tblCases) linked with a form (Case Manager) in my database and one of the text boxes (txtCaseNo) is populated with the below expression to create a unique case reference number:
This created a case number looking something along the lines of "CMS/241016/1/C".
My question is: is there a way I can save the case number created by the expression into a field within "tblCases" called "CaseNo" so I can user the number elsewhere?
This is probably a very clunky way of creating a case reference number, but as I said, this is 100% self taught via Google.
(I'm pretty new to database design and everything I know is 100% self taught so I apologise if I'm talking rubbish, any tips are welcome)
I have a table (tblCases) linked with a form (Case Manager) in my database and one of the text boxes (txtCaseNo) is populated with the below expression to create a unique case reference number:
Code:
=IIf([Dummy]=True,"TEST RECORD","CMS" & "" & Format([StartDate],"ddmmyy") & "/" & [CaseID] & "" & IIf([Type]="01 - Case","/C",IIf([Type]="02 - Non-Asset","/N",IIf([Type]="03 - Project","/P",""))))
My question is: is there a way I can save the case number created by the expression into a field within "tblCases" called "CaseNo" so I can user the number elsewhere?
This is probably a very clunky way of creating a case reference number, but as I said, this is 100% self taught via Google.