I have a form in an Access project connected to a sql server database
I have a form with two comboBox
the first list give me a result from a table
the second give a result whitch depend of the first result
if it's not clear I'll give you an example
Table1 : one column with these values : a,b,c
table2 : two columns : one is the foreign key of table1, one is a value : so I have a-1, b-2, b-4, c-3
so if the value of the first list in my form is b, the second list contain 2 and 4.
how can I do to tell in a query that the value in the first list is a parameter for the second ?
sql server don't understand when the parameter is a value from a list
I have a form with two comboBox
the first list give me a result from a table
the second give a result whitch depend of the first result
if it's not clear I'll give you an example
Table1 : one column with these values : a,b,c
table2 : two columns : one is the foreign key of table1, one is a value : so I have a-1, b-2, b-4, c-3
so if the value of the first list in my form is b, the second list contain 2 and 4.
how can I do to tell in a query that the value in the first list is a parameter for the second ?
sql server don't understand when the parameter is a value from a list