honey0 Level: Graduate
 Registered: 16-03-2006 Posts: 9
|
VB Filter adodc control
hey, trying to make a sort of filter of a data grid control on a VB form.
the data grid control is connected to a adoddc control, and theres a txt box on the form which i would like to be able to put a number and the datagrid return records where that field is equal.
there is also a standard data control on the form which is connected to a table that also contains the value which i would like to filter. is there a way to use this data control to get the value for the adodc filter. or how would i make a filter where i can enter a value into a text box and use that as filter critera.
SELECT Customer.[First Name], Customer.Surname, Customer.Telephone, Customer.[Customer ID], Items.[Order Number], Items.[Item ID], Jewellery.Name, Jewellery.Descrpition, Jewellery.Location
FROM Jewellery INNER JOIN (Customer INNER JOIN Items ON Customer.[Customer ID] = Items.[Customer ID]) ON Jewellery.[Item ID] = Items.[Item ID];
this is my current adodc setup and i would like to filter for customer id
|