N
njem
Organizing a fund raiser in a bowling alley. One table is of team
captains & their details. Another table is of lanes and times and
whether a captain has been assigned to that lane&time. When I change
the assigned captain in the schedule table the related field on the
Captains form doesn't update to show the change.
Details:
Captains table is keyed by combo of last&first name & comp name.
CaptNum is an auto-number, indexed no dupes
Schedule table is keyed on combo of lane & hour.
CaptNum is a number, indexed, no dupes, not required
I used the lookup wizard to make this a pull-down look-up field and
included all 3 fields in Schedule, checked "don't show key field"
which hid the CaptNum in the pull down. Pull down show last, first, co
name.
1-to-1 relationship between CaptNum fields, only where both are equal.
Have tried enforce integrity on and off.
On the Captains form I put a copy of the Schedule:Hour field, set it
to be locked not editable.
It worked! Used the pull down to assign a captain to a slot, opened
the Captains form and went to that captain and there was the right
hour. But if I go back to the schedule and delete them from one time
slot and assign them to another, then open the the captain form, the
time doesn't change. No amount of refreshing or closing re-opening
things fixes it.
A: How do I get it to refresh?
B: I really don't want the lane & hour on the Captains form to be a
field you can put a cursor in. It should just be a label or display
that you can't select. It's never change there. Text boxes can be
assigned a data source but still let you put the cursor in and try to
change it, labels don't let you assign a data source. So?
Thanks,
Tom
Access 2007
captains & their details. Another table is of lanes and times and
whether a captain has been assigned to that lane&time. When I change
the assigned captain in the schedule table the related field on the
Captains form doesn't update to show the change.
Details:
Captains table is keyed by combo of last&first name & comp name.
CaptNum is an auto-number, indexed no dupes
Schedule table is keyed on combo of lane & hour.
CaptNum is a number, indexed, no dupes, not required
I used the lookup wizard to make this a pull-down look-up field and
included all 3 fields in Schedule, checked "don't show key field"
which hid the CaptNum in the pull down. Pull down show last, first, co
name.
1-to-1 relationship between CaptNum fields, only where both are equal.
Have tried enforce integrity on and off.
On the Captains form I put a copy of the Schedule:Hour field, set it
to be locked not editable.
It worked! Used the pull down to assign a captain to a slot, opened
the Captains form and went to that captain and there was the right
hour. But if I go back to the schedule and delete them from one time
slot and assign them to another, then open the the captain form, the
time doesn't change. No amount of refreshing or closing re-opening
things fixes it.
A: How do I get it to refresh?
B: I really don't want the lane & hour on the Captains form to be a
field you can put a cursor in. It should just be a label or display
that you can't select. It's never change there. Text boxes can be
assigned a data source but still let you put the cursor in and try to
change it, labels don't let you assign a data source. So?
Thanks,
Tom
Access 2007