Hi all
I have a TableAdaptor with the following Query..
SELECT Start, Finish, Prod1, Prod2, Prod3, AutoID
FROM RecordProduction
WHERE (Department = @PrmDepartment) AND (RecordDate = @PrmDate) AND (Batch = @PrmBatch) AND (System = @PrmSystem) AND
(Component = @PrmComponent) AND (RecordSize = @PrmSize)
As you can see I am using Parameters to filter down the query.
On My form I have a datagrid that gets its information from the above query, also on my form I have some Combo Boxes and text boxes, what I want is the Parameters to be associated with values in the combo boxes and text boxes, so that when I click on a button to refrsh the datagrid it show the information based on what the user selects in the combo boxes and text boxes.. I just cant figure out how to pass the information from the controls to the parameters..
Any help is appreciated.
Regards
Douglas Bell
I have a TableAdaptor with the following Query..
SELECT Start, Finish, Prod1, Prod2, Prod3, AutoID
FROM RecordProduction
WHERE (Department = @PrmDepartment) AND (RecordDate = @PrmDate) AND (Batch = @PrmBatch) AND (System = @PrmSystem) AND
(Component = @PrmComponent) AND (RecordSize = @PrmSize)
As you can see I am using Parameters to filter down the query.
On My form I have a datagrid that gets its information from the above query, also on my form I have some Combo Boxes and text boxes, what I want is the Parameters to be associated with values in the combo boxes and text boxes, so that when I click on a button to refrsh the datagrid it show the information based on what the user selects in the combo boxes and text boxes.. I just cant figure out how to pass the information from the controls to the parameters..
Any help is appreciated.
Regards
Douglas Bell