Ok, to be humorous, I will say I made a database for lemonade.
I have a table tblPitcher and a one tblGlasses and a junction table tlnkPitGls.
I had created a form for the information about creating the pitcher of lemonade (tblPitcher) with a subform to create the records for the junction table.
There are expected to be two glasses per pitcher of lemonade.
The pitchers are numbered 02-001-002 then 02-003-004, etc. (02 is for 2002)
I want the glasses to be numbered 02-001, 02-002, etc.
When I enter the pitcher number, I would like the glasses to appear on the sub-form (2 records for each pitcher).
How would you recommend I do this?
I thought about doing some code on change to the pitcher number such that the subform has two records:
txtGls 1: left(txtPit,6)
txtGls 2: left(txtPit,3)+right(txtPit,3)
but I am not sure how to right the code to do it!
Thanks for your help,
Shelli Godfrey
I have a table tblPitcher and a one tblGlasses and a junction table tlnkPitGls.
I had created a form for the information about creating the pitcher of lemonade (tblPitcher) with a subform to create the records for the junction table.
There are expected to be two glasses per pitcher of lemonade.
The pitchers are numbered 02-001-002 then 02-003-004, etc. (02 is for 2002)
I want the glasses to be numbered 02-001, 02-002, etc.
When I enter the pitcher number, I would like the glasses to appear on the sub-form (2 records for each pitcher).
How would you recommend I do this?
I thought about doing some code on change to the pitcher number such that the subform has two records:
txtGls 1: left(txtPit,6)
txtGls 2: left(txtPit,3)+right(txtPit,3)
but I am not sure how to right the code to do it!
Thanks for your help,
Shelli Godfrey