I am trying to generate work order numbers based on a type. Maintence is Mn… Construction Cn.. and Service is Sn..
My table is Called “TblPO_numbers” my type field is “Type” and my stored numbers are in “WOSeqNum”
In my “Type” field I have M,C,S… and I get these from a combo box once I have selected the one I want I click on a command button that runs the following.
WOSeqNum = Nz(DMax("WOSeqNum", "TblPO_numbers", "Type = '" & Me.Type & "'"), 0) + 1
This does generate a new number with for each type however the type is not displayed. Like Ie. M1,M2,M3… instead I just get 1,2,3, for each type.
Can some one lend a tip ?
My table is Called “TblPO_numbers” my type field is “Type” and my stored numbers are in “WOSeqNum”
In my “Type” field I have M,C,S… and I get these from a combo box once I have selected the one I want I click on a command button that runs the following.
WOSeqNum = Nz(DMax("WOSeqNum", "TblPO_numbers", "Type = '" & Me.Type & "'"), 0) + 1
This does generate a new number with for each type however the type is not displayed. Like Ie. M1,M2,M3… instead I just get 1,2,3, for each type.
Can some one lend a tip ?