GaWill
Member
Ive used the datasource wizard etc and ive added the tables and created my query to filter my data. However in my query ive used a parameter called @BOOKED_DATE and im having trouble passing this parameter from my appliaction to the table adapter. Ive been trying using the following code :
However it is not liking this code. Please can somebody tell me how to pass parameters into the wizard generated tableAdapters ?
VB.NET:
[SIZE=2]ClinicDate = [/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].TxtDate.Text
[/SIZE]
[SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].CLINICTableAdapter.FillClinics.add([/SIZE][SIZE=2][COLOR=#800000]"@BOOKED_DATE"[/COLOR][/SIZE][SIZE=2], SqlDbType.DateTime, 10, [/SIZE][SIZE=2][COLOR=#800000]"BOOKED_DATE"[/COLOR][/SIZE][SIZE=2]).Value = ClinicDate
[/SIZE]
However it is not liking this code. Please can somebody tell me how to pass parameters into the wizard generated tableAdapters ?