multi-select field SQL error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a week number list box field on a custom form that is populated based
on the values of other form controls. It seems to populate correctly when the
form is run but when you attempt to select a value from the list, you get the
error message that the list box is not available for editing because it is
"bound to an unknown field" followed by a pair of empty boxes inside
quotation marks.

The Row Source Type is Table/Query and the Row Source is a SQL statement as
follows:

SELECT tblAttendance.WeekNo, tblAttendance.Class, tblStudent.StID FROM
tblStudent INNER JOIN tblAttendance ON tblStudent.StID=tblAttendance.StID
WHERE (((tblStudent.StID)=Forms!frmFindAttRecord!cmbStName));

I have checked the syntax carefully and verified that each of the mentioned
fields is valid, but can't understand what I am missing.

Thank you in advance for any help in this matter.
 
The problem is not in the Row Source Type or Row Source properties, it is in
the Control Source property.

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 
Back
Top