Hello there!
i have table with two fields. The one field is called "Surname" and the other field is called "situation". I have set the "situation" field to be a combo box and can take 2 values: d_n and "e_y".
I created a form which has combo boxes and 2 listboxes. The combo boxes take values from the "surname field " (the user selects on of the surnames). I have written a code so, the values of the listbox will be from the "surname" field but there will be only the surnames - values which have "situation" field = d_n.
I tried something like
SELECT* FROM table1 WHERE [table1].[situation]="d_n" but i get no values to the listbox.
Any ideas?
Thanks in advance
i have table with two fields. The one field is called "Surname" and the other field is called "situation". I have set the "situation" field to be a combo box and can take 2 values: d_n and "e_y".
I created a form which has combo boxes and 2 listboxes. The combo boxes take values from the "surname field " (the user selects on of the surnames). I have written a code so, the values of the listbox will be from the "surname" field but there will be only the surnames - values which have "situation" field = d_n.
I tried something like
SELECT* FROM table1 WHERE [table1].[situation]="d_n" but i get no values to the listbox.
Any ideas?
Thanks in advance