Hello All,
I am trying to make a fairly simple database, but am really stumped by a data entry problem.
Illustration of situation:
A drinker can go to any pub on any date, and buy any drink or drinks they like.
I want to capture each visit to the pub on a database.
I want to capture each drink bought during each visit.
However, I do not want to have to re-input the pub name, date of visit, and the drinker's name for each drink bought during that particular visit.
I want to be able to input:
Bob visited The Flying Horse on 11/12/2019, and bought:
- a pint of Landlord
- a packet of roasted nuts
- a pint of Pepsi
i.e. only inputting "Bob / Flying Horse / 11/12/2019" once, and associating that visit to each of the purchases made there.
(Each purchase would end up as a row in a table I presume, which contained a field for every aspect of that individual purchase? Bob / Flying Horse / 11/12/2019 / Pint of Landlord)
I can't see past doing it the long-winded way:
input 1; Bob / Flying Horse / 11/12/2019 / Pint of Landlord
input 2; Bob / Flying Horse / 11/12/2019 / Packet of roasted nuts
input 3; Bob / Flying Horse / 11/12/2019 / Pint of Pepsi
I thought along the lines of creating tables for:
- drinkers
- pubs
- purchases
with an intermediate table for a visit, populated with content from the drinkers and pubs tables,
which then (with each input purchase) populates a row for every purchase.
I've gone so far down the rabbit hole, I have to keep scrapping the lot, and starting again!
And, as with so many things where one is not expert, knowing the correct question to ask is most of the battle.......
Thanks in anticipation
I am trying to make a fairly simple database, but am really stumped by a data entry problem.
Illustration of situation:
A drinker can go to any pub on any date, and buy any drink or drinks they like.
I want to capture each visit to the pub on a database.
I want to capture each drink bought during each visit.
However, I do not want to have to re-input the pub name, date of visit, and the drinker's name for each drink bought during that particular visit.
I want to be able to input:
Bob visited The Flying Horse on 11/12/2019, and bought:
- a pint of Landlord
- a packet of roasted nuts
- a pint of Pepsi
i.e. only inputting "Bob / Flying Horse / 11/12/2019" once, and associating that visit to each of the purchases made there.
(Each purchase would end up as a row in a table I presume, which contained a field for every aspect of that individual purchase? Bob / Flying Horse / 11/12/2019 / Pint of Landlord)
I can't see past doing it the long-winded way:
input 1; Bob / Flying Horse / 11/12/2019 / Pint of Landlord
input 2; Bob / Flying Horse / 11/12/2019 / Packet of roasted nuts
input 3; Bob / Flying Horse / 11/12/2019 / Pint of Pepsi
I thought along the lines of creating tables for:
- drinkers
- pubs
- purchases
with an intermediate table for a visit, populated with content from the drinkers and pubs tables,
which then (with each input purchase) populates a row for every purchase.
I've gone so far down the rabbit hole, I have to keep scrapping the lot, and starting again!
And, as with so many things where one is not expert, knowing the correct question to ask is most of the battle.......
Thanks in anticipation