G
Guest
Hello,
I'm doing a program for a friend and for some reasons it had to be done in
Access, which I never used before, so I have this (entry level?) question:
A textbox has a row source sql statement that depends of the value from
another combobox. Here's what I have in the row source properties:
SELECT Grau & Letra, TURMA_ID, ANO_LECTIVO_ID FROM tblTURMA WHERE
(tblTURMA.ANO_LECTIVO_ID)=cboAnoLectivo.column(1)
Access refuses to accept the value of the column 1 from combobox
cboAnoLectivo, but if I remove the ".column(1)" it works fine, but the the
WHERE condition does not work because I link the ID with the combobox
description, not the other ID.
How do I make this work, that is my question.
Thanks in advance,
Pedro
I'm doing a program for a friend and for some reasons it had to be done in
Access, which I never used before, so I have this (entry level?) question:
A textbox has a row source sql statement that depends of the value from
another combobox. Here's what I have in the row source properties:
SELECT Grau & Letra, TURMA_ID, ANO_LECTIVO_ID FROM tblTURMA WHERE
(tblTURMA.ANO_LECTIVO_ID)=cboAnoLectivo.column(1)
Access refuses to accept the value of the column 1 from combobox
cboAnoLectivo, but if I remove the ".column(1)" it works fine, but the the
WHERE condition does not work because I link the ID with the combobox
description, not the other ID.
How do I make this work, that is my question.
Thanks in advance,
Pedro