Private Sub ListView1_Click() Dim cnindvprnt As New ADODB.connection Dim rsindvprnt As New ADODB.recordset Call connection(cnindvprnt, App.Path & "\Sales.mdb", "engman") Call recordset(rsindvprnt, cnindvprnt, "SELECT * FROM Reser WHERE reno='" & txtReno.Text & "'") If rsindvprnt.RecordCount = 0 Then 'MsgBox "Select Search button first.", vbExclamation, "Engcore Merchandising" Exit Sub End If Set Reservation.DataSource = rsindvprnt Reservation.Show 1 Set cnindvprnt = Nothing Set rsindvprnt = Nothing End Sub
Note: Not Displaying Records in Report.

New Topic/Question
Reply




MultiQuote







|