P
Peter Scott
Hello. I'm afraid I don't program Access often enough to have gotten the
mental model for certain things yet. I've struggled with this one for a
day.
This is a simple event scheduling app: Tables: Rooms, TimeSlots, Sessions,
each keyed on ID. And a table Schedule, containing just: TimeSlotID,
RoomID, SessionID. I'm making a form for Schedule that will control the
scheduling by room, so it is a single form containing a list box bound to
RoomID and a continuous forms subform containing TimeSlotID and SessionID.
Because Schedule is pre-populated with all possible room & timeslot IDs,
TimeSlotID is shown in a locked text box; SessionID is a list box.
This works: I can select a room by its ID, see all the timeslots by their
IDs and change the corresponding sessions by their IDs. But what I want
displayed instead of the IDs are values drawn from the tables those IDs
refer to. So where I see TimeSlotID I want to see TimeSlots.Day &
TimeSlots.StartTime & TimeSlots.EndTime (where TimeSlots.ID = TimeSlotID),
etc, even though the control is reading and writing the numeric ID.
I've sweated over ControlSource for a while trying to put a query in
there but I'm not getting it. Can someone point me in the right direction
please?
mental model for certain things yet. I've struggled with this one for a
day.
This is a simple event scheduling app: Tables: Rooms, TimeSlots, Sessions,
each keyed on ID. And a table Schedule, containing just: TimeSlotID,
RoomID, SessionID. I'm making a form for Schedule that will control the
scheduling by room, so it is a single form containing a list box bound to
RoomID and a continuous forms subform containing TimeSlotID and SessionID.
Because Schedule is pre-populated with all possible room & timeslot IDs,
TimeSlotID is shown in a locked text box; SessionID is a list box.
This works: I can select a room by its ID, see all the timeslots by their
IDs and change the corresponding sessions by their IDs. But what I want
displayed instead of the IDs are values drawn from the tables those IDs
refer to. So where I see TimeSlotID I want to see TimeSlots.Day &
TimeSlots.StartTime & TimeSlots.EndTime (where TimeSlots.ID = TimeSlotID),
etc, even though the control is reading and writing the numeric ID.
I've sweated over ControlSource for a while trying to put a query in
there but I'm not getting it. Can someone point me in the right direction
please?