whitelockben
Registered User.
- Local time
- Today, 22:19
- Joined
- Jun 29, 2011
- Messages
- 25
Hi all,
I have a text box which is partly filled by the code
However what I want to do now is have the next avaiable number to follow the prefix.
So for example on click the numbers would be added to the prefixs eg ... P-0001 the next record P-0002 etc for where a 'P' prefix is used and the same to happen for the 'C' prefixes too.
Does anyone know if this is possible?
Just a quick thank you to every one who has been able to reply to my posts and questions. Everything has been much appreciated!!
I have a text box which is partly filled by the code
Code:
Private Sub cboSeg_AfterUpdate()
If Not IsNull(Me.CBOsEG) Then
If Me.CBOsEG = "C&I" Then
Me.txtCN = "C-"
Else
Me.txtCN = "P-"
End If
Else
Me.txtCN = ""
End If
End Sub
However what I want to do now is have the next avaiable number to follow the prefix.
So for example on click the numbers would be added to the prefixs eg ... P-0001 the next record P-0002 etc for where a 'P' prefix is used and the same to happen for the 'C' prefixes too.
Does anyone know if this is possible?
Just a quick thank you to every one who has been able to reply to my posts and questions. Everything has been much appreciated!!