Professional Documents
Culture Documents
Uas Project Apk Menu Makanan Irfan
Uas Project Apk Menu Makanan Irfan
KELOMPOK 1 SI-2A:
End Sub
• Tampilan From About sebelum di RUN
Sub GenerateKode()
Dim kode As String
Adodc2.Refresh
With Adodc2.Recordset
If .RecordCount > 0 Then
.MoveLast
kode = .Fields(0).Value
kode = Val(rigth(kode, 3))
kode = kode + 1
If Val(kode) < 10 Then
txtkode.txt = "AYLA" & kode
ElseIf Val(kode) < 100 Then
txtkode.Text = "NAGO" & kode
Else
txtkode.txt = "TEPE" & kode
Else
txtkode.txt = "EST" & kode
Else
txtkode.txt = "KOSU" & kode
Else
txtkode.txt = "NUTS" & kode
End If
End With
End Sub