Vous êtes sur la page 1sur 5

Code du projet recherche

Public nt, pc Private Sub CmdChercher_Click() On Error GoTo toto cr = Text5.Text If Option1.Value = True Then Data1.RecordSource = "select * from [Table1] where Ville like '" & cr & "*'" End If If Option2.Value = True Then Data1.RecordSource = "select * from [Table1] where societe like '" & cr & "*'" End If If Option3.Value = True Then Data1.RecordSource = "select * from [Table1] where Contact like '" & cr & "*'" End If If Option4.Value = True Then Data1.RecordSource = "select * from [Table1] where relation like '" & cr & "*'" End If Data1.Refresh Data1.Recordset.MoveLast Data1.Recordset.MoveFirst nt = Data1.Recordset.RecordCount Text9.Text = "1 / " & nt Data1.Caption = Data1.RecordSource Exit Sub toto: MsgBox ("Aucun Enregistrement ne correspond ce critre !!") End Sub Private Sub CmdDernierR_Click() Data1.Recordset.MoveLast pc = Data1.Recordset.AbsolutePosition + 1 Text9.Text = pc & " / " & nt End Sub

Private Sub CmdPrcdantR_Click() Data1.Recordset.MovePrevious If Data1.Recordset.BOF Then Data1.Recordset.MoveFirst pc = Data1.Recordset.AbsolutePosition + 1 Text9.Text = pc & " / " & nt End Sub Private Sub CmdPremierR_Click() Data1.Recordset.MoveFirst pc = Data1.Recordset.AbsolutePosition + 1 Text9.Text = pc & " / " & nt End Sub

Private Sub CmdSuivantR_Click() Data1.Recordset.MoveNext If Data1.Recordset.EOF Then Data1.Recordset.MoveLast pc = Data1.Recordset.AbsolutePosition + 1 Text9.Text = pc & " / " & nt End Sub

Base de donnes ventes

Private Sub Command1_Click() End End Sub Private Sub Label1_Click() Form1.Hide Load Form2 Form2.Show End Sub Private Sub Label2_Click() Form1.Hide Load Form3 Form3.Show End Sub Private Sub Label3_Click() Form1.Hide Load Form4 Form4.Show End Sub 3

Private Sub Command1_Click() Unload Me Form1.Show End Sub

Private Sub Command1_Click() Unload Me Form1.Show End Sub

Private Sub Command1_Click() Unload Me Form1.Show End Sub

Private Sub Command1_Click() Unload Me Form1.Show End Sub

Vous aimerez peut-être aussi