Advertisement
Advertisement
| 05.09.2008 at 02:15PM PDT, ID: 23390850 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: |
Function getNextSampleNumber() As String
Dim intMax As Integer, curVal, newVal, Sample As String
Sample = OrderID
curVal = Nz(DMax("SampleNumber", "OrderDetails"))
If Right(curVal, 4) = Sample Then
If Len(curVal & "") > 0 Then
intMax = Left(curVal, 4)
newVal = Format(intMax + 1, "0000")
Else
newVal = "0001"
End If
Else
newVal = "0001"
End If
getNextSampleNumber = newVal
End Function
|
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 05.09.2008 at 03:54PM PDT, ID: 21536892 |
| 05.09.2008 at 03:55PM PDT, ID: 21536897 |
| 05.09.2008 at 04:25PM PDT, ID: 21537038 |
| 05.09.2008 at 04:59PM PDT, ID: 21537256 |