J
jmcdonald
Hi...
I'm new to seeking help from this group, but I have appreciated reading
your help to others for some time. I am developing an Access 2000 db.
I have a FORM which makes assignments of courses to rooms for a school.
On this form the fields CourseID and RoomID are foreign keys to the
Courses and Rooms tables. After selecting a CourseID on the form and
then a RoomID, I would like to enter code into the LostFocus(?) or
OnChange(?) property of the RoomID to check and see if a required
component for the Course is available in the Room. The way I want to do
this is for the code to go to the Courses TABLE and compare the value
of a checkbox there to the value of a checkbox in the Rooms TABLE. If
the Course checkbox = TRUE for needing the component and the Rooms
checkbox = FALSE for having the component, then I want to generate an
error message saying that that Course cannot be assigned to that room.
I suppose I would also need to deal with NULL values in either table. I
know SQL pretty well, but very little vb. Can anyone help me??? Thanks.
I'm new to seeking help from this group, but I have appreciated reading
your help to others for some time. I am developing an Access 2000 db.
I have a FORM which makes assignments of courses to rooms for a school.
On this form the fields CourseID and RoomID are foreign keys to the
Courses and Rooms tables. After selecting a CourseID on the form and
then a RoomID, I would like to enter code into the LostFocus(?) or
OnChange(?) property of the RoomID to check and see if a required
component for the Course is available in the Room. The way I want to do
this is for the code to go to the Courses TABLE and compare the value
of a checkbox there to the value of a checkbox in the Rooms TABLE. If
the Course checkbox = TRUE for needing the component and the Rooms
checkbox = FALSE for having the component, then I want to generate an
error message saying that that Course cannot be assigned to that room.
I suppose I would also need to deal with NULL values in either table. I
know SQL pretty well, but very little vb. Can anyone help me??? Thanks.