Private Sub Command3_Click()
Data1.Recordset.MoveNext
Do While Not Data1.Recordset.EOF = True
If Data1.Recordset("CrimeID") = Crimes Then
found = True
Exit Do
Else
Data1.Recordset.MoveNext
found = False
End If
Loop
If found = True Then
susname = Data1.Recordset("SuspectName")
caseno = Data1.Recordset("CaseNo")
compid = Data1.Recordset("CompID")
age = Data1.Recordset("SuspectAge")
Crimeloc = Data1.Recordset("CrimeLoc")
date = Data1.Recordset("FilledDate")
time = Data1.Recordset("FilledTime")
Command4.Enabled = True
Else
MsgBox "No more record match", vbExclamation, "NO MATCH FOUND"
Command3.Enabled = False
End If
Command1.Enabled = True
End Sub
Private Sub Command4_Click()
Data1.Recordset.MoveFirst
Do While Not Data1.Recordset.EOF = True
If Data1.Recordset("CrimeID") = Crimes Then
found = True
Exit Do
Else
Data1.Recordset.MoveNext
found = False
End If
Loop
If found = True Then
susname = Data1.Recordset("SuspectName")
compid = Data1.Recordset("CompID")
caseno = Data1.Recordset("CaseNo")
age = Data1.Recordset("SuspectAge")
Crimeloc = Data1.Recordset("CrimeLoc")
date = Data1.Recordset("FilledDate")
time = Data1.Recordset("FilledTime")
Command3.Enabled = True
Else
MsgBox "No more record match", vbExclamation, "NO MATCH FOUND"
Command4.Enabled = False
Subscribe to:
Post Comments (Atom)
1 comments:
tod's shoes
hollister outlet store
abercrombie and fitch outlet
ugg boots sale
girl jordans
coach factory outlet online
under armour clearance
coach outlet
air max 2015
michael kors outlet
michael kors outlet 75% off
nike outlet
jordan 11
dior outlet store
fitflop sale
new balance outlet
jordan shoes for kids
nike outlet store online
ferragamo shoes outlet
hermes outlet
nike shoes outlet
coach outlet store online
fitflop sale
michael kors purses
new balance outlet
juicy couture
mont blanc
oakley sunglasses outlet
clarks outlet
jordan shoes
abercrombie and fitch outlet
abercrombie and fitch
michael kors outlet
air jordan 13
kobes shoes
hermes birkin
coach clearance
20151027yxj-2
Post a Comment