D
DS
I have this DMax on a Number field, It works fine.
SalesID = Nz(DMax("[SalesID]", "Sales"), 0) + 1
I need to add a Letter to the begining of the generated Number.
The letter comes from an Unbound field on the same form
The field is Called SType....Which can be anyone of 5 Letters...
I tried this...
SalesID = "[SType]"& Nz(DMax("[SalesID]", "Sales"), 0) + 1
and it came back as a Type MisMatch
What do I need to change or do to get this thing to work....I've scoured
the Internet all day long looking for a solution, 8 hours later and I
still can't get it to work.
Any help is appreciated.
Thanks
DS
SalesID = Nz(DMax("[SalesID]", "Sales"), 0) + 1
I need to add a Letter to the begining of the generated Number.
The letter comes from an Unbound field on the same form
The field is Called SType....Which can be anyone of 5 Letters...
I tried this...
SalesID = "[SType]"& Nz(DMax("[SalesID]", "Sales"), 0) + 1
and it came back as a Type MisMatch
What do I need to change or do to get this thing to work....I've scoured
the Internet all day long looking for a solution, 8 hours later and I
still can't get it to work.
Any help is appreciated.
Thanks
DS