T
Tom \T\
Jeff,
I have restructured the table design so that there is tblVisitedStates with
PersonID, StateID, and an Autonumbered Primary Key. I had to add a Primary
Key to tblVisitedStates instead of using the combined PK of tblPerson and
tblStates because of business rules which would allow a Person to visit the
same states on different dates.
Now here is my problem and I just cannot see past it. I have a Main Form
with a subform which is in Datasheet View. Across the top of the Subform's
Datasheet view you can see State#1, State#2, and State#3 which used to be
linked to tblPerson.State1, tblPerson.State2, and tblPerson.State3 and all 3
fields are ComboBoxes to facilitate correct data.
Originally each Field(State#1, State#2, and State#3):
ControlSource = State1
RowSourceType = "Table/Query"
RowSource = "SELECT tblState.StateID, tblState.Description FROM tblState;"
ColumnWidth = 0";1"
BoundColumn = 1
ControlSource = State2
RowSourceType = "Table/Query"
RowSource = "SELECT tblState.StateID, tblState.Description FROM tblState;"
ColumnWidth = 0";1"
BoundColumn = 1
ControlSource = State3
RowSourceType = "Table/Query"
RowSource = "SELECT tblState.StateID, tblState.Description FROM tblState;"
ColumnWidth = 0";1"
BoundColumn = 1
Now there may be 1 State, 2 States, or 3 States entered for that Time Frame.
How do I enumerate those fields with the current Data in the DataSheet View
in the NEW Configuration so that as I read John Smith's Record I see State#1
= Arizona, State#2 = Washington, State#3 = Delaware or Amber Smith's Record
State#1 = New Hampshire.
Smith, John's PersonID = 5
Wells, Amber's PersonID = 6
tblVisitedStates.PK, tblVisitedStates.PersonID, tblVisitedStates.StateID
1,5,AZ
2,5,WA
3,5,DE
4,6,NH
I have used the BAD table Design for so long I'm suffering a severe mental
block on how to get my desired result with the NEW table Design. Any
suggestions would be greatly appreciated.
- Tom
I have restructured the table design so that there is tblVisitedStates with
PersonID, StateID, and an Autonumbered Primary Key. I had to add a Primary
Key to tblVisitedStates instead of using the combined PK of tblPerson and
tblStates because of business rules which would allow a Person to visit the
same states on different dates.
Now here is my problem and I just cannot see past it. I have a Main Form
with a subform which is in Datasheet View. Across the top of the Subform's
Datasheet view you can see State#1, State#2, and State#3 which used to be
linked to tblPerson.State1, tblPerson.State2, and tblPerson.State3 and all 3
fields are ComboBoxes to facilitate correct data.
Originally each Field(State#1, State#2, and State#3):
ControlSource = State1
RowSourceType = "Table/Query"
RowSource = "SELECT tblState.StateID, tblState.Description FROM tblState;"
ColumnWidth = 0";1"
BoundColumn = 1
ControlSource = State2
RowSourceType = "Table/Query"
RowSource = "SELECT tblState.StateID, tblState.Description FROM tblState;"
ColumnWidth = 0";1"
BoundColumn = 1
ControlSource = State3
RowSourceType = "Table/Query"
RowSource = "SELECT tblState.StateID, tblState.Description FROM tblState;"
ColumnWidth = 0";1"
BoundColumn = 1
Now there may be 1 State, 2 States, or 3 States entered for that Time Frame.
How do I enumerate those fields with the current Data in the DataSheet View
in the NEW Configuration so that as I read John Smith's Record I see State#1
= Arizona, State#2 = Washington, State#3 = Delaware or Amber Smith's Record
State#1 = New Hampshire.
Smith, John's PersonID = 5
Wells, Amber's PersonID = 6
tblVisitedStates.PK, tblVisitedStates.PersonID, tblVisitedStates.StateID
1,5,AZ
2,5,WA
3,5,DE
4,6,NH
I have used the BAD table Design for so long I'm suffering a severe mental
block on how to get my desired result with the NEW table Design. Any
suggestions would be greatly appreciated.
- Tom