David R
I know a few things...
- Local time
- Today, 02:10
- Joined
- Oct 23, 2001
- Messages
- 2,633
So I've finally gotten my data normalized (hi Pat! *sheepish grin*). However I'm not entirely sure what the best wya to revamp my form is to reflect the new data structure.
To summarize:
tableParticipants: Main table for each person. ParticipantID is the PK.
tableDevices: Each device a person gets goes here. Has a FK for ParticipantID, and a FK for EventID (see below), since each device is given out at a specific event.
CFS_Events: Actually stored in another database, this is the record of all events we do. EventID is the PK. I've linked this to the Participants database in order to use the Event information.
So the data entry form looks like this:
-=*Section on Participant Information*=-
-=*Subform for Devices (Continuous)*=-
-=*Subform for Events (Continuous)*=-
The subform for Events is based on the following query:
So it only shows one occurrance of each event, no matter how many devices are obtained at any one event. This subform is locked and only for display purposes.
>> My problem is this: How do I select the EventID when I enter a device, without cluttering up the Devices subform too badly. Real estate is already at a premium for that subform or I'd just add a combo box. I figured that 98% of the time, there's only going to be one event on a given day, so I can lookup the event for that day and add it if there's just one, otherwise bring up a popup form with a combo of all the events for that day. The kicker is that sometimes the date field for the subform (which is actually the DateReceived) may not be the same as the EventDate, and there are 700 events (thus far) to scroll through to find the right one.
Suggestions? Would a popup form with the combo box for all the events on it and a prompt for the actual event date be too intrusive? Another possibility is adding a second line to the subform, so that you can see the name/date (at a minimum) of the event as you select it from a combo. Is there a way to make this combo disappear and the space shrink back down after you fill it out?
Anticipatorially,
David R
[This message has been edited by David R (edited 04-04-2002).]
To summarize:
tableParticipants: Main table for each person. ParticipantID is the PK.
tableDevices: Each device a person gets goes here. Has a FK for ParticipantID, and a FK for EventID (see below), since each device is given out at a specific event.
CFS_Events: Actually stored in another database, this is the record of all events we do. EventID is the PK. I've linked this to the Participants database in order to use the Event information.
So the data entry form looks like this:
-=*Section on Participant Information*=-
-=*Subform for Devices (Continuous)*=-
-=*Subform for Events (Continuous)*=-
The subform for Events is based on the following query:
Code:
SELECT DISTINCT tableDevices.ParticipantID, CFS_Events.EventName, CFS_Events.Location,
CFS_Events.StartDate, tableEventTypes.EventTypeText, CFS_Events.EventID
FROM (CFS_Events INNER JOIN tableDevices ON CFS_Events.EventID = tableDevices.EventID)
LEFT JOIN tableEventTypes ON CFS_Events.EventType = tableEventTypes.EventType
ORDER BY CFS_Events.StartDate;
So it only shows one occurrance of each event, no matter how many devices are obtained at any one event. This subform is locked and only for display purposes.
>> My problem is this: How do I select the EventID when I enter a device, without cluttering up the Devices subform too badly. Real estate is already at a premium for that subform or I'd just add a combo box. I figured that 98% of the time, there's only going to be one event on a given day, so I can lookup the event for that day and add it if there's just one, otherwise bring up a popup form with a combo of all the events for that day. The kicker is that sometimes the date field for the subform (which is actually the DateReceived) may not be the same as the EventDate, and there are 700 events (thus far) to scroll through to find the right one.
Suggestions? Would a popup form with the combo box for all the events on it and a prompt for the actual event date be too intrusive? Another possibility is adding a second line to the subform, so that you can see the name/date (at a minimum) of the event as you select it from a combo. Is there a way to make this combo disappear and the space shrink back down after you fill it out?
Anticipatorially,
David R
[This message has been edited by David R (edited 04-04-2002).]