Ok...thankyou but How you created your DataSet?
When I created mine on VB I drag the 3 tables and also I created the relations between.
Then, MySQL looks like:
Me.MyDataAdapter = New OleDb.OleDbDataAdapter("SELECT Employee.[Emp_ID]," & _
" Employee.[Last_Name], Employee.[First_Name], Employee_Place.[PLace], Employee_Card.[Card]," & _
" Employee_Card.[Due_Date] FROM (Employee INNER JOIN Employee_Card" & _
" ON Employee.[Emp_ID] = Employee_Card.[Emp_ID]) INNER JOIN Employee_Place" & _
" ON Employee.[Emp_ID] = Employee_Place.[Emp_ID]" & _
" WHERE ( (Employee_Place.[Place] = @MyPlace) AND (Employee_Card.[DueDate <= @MyDate))", MyConn)
In the form I have a ComboBox that displays the differents places and a DateTimePicker...it should filter the report.
Actually it shows me every record that is filled on the DataSet...!
I don't see just what I 'm looking for.
Enzo
Enter your message below
Sign in or Join us (it's free).