J
Jeff Wilkin
I need to create a query to calculate how much of each type of alcohol
should have been dispensed based upon the number of cocktails sold for any
given time period(s). Date parameters are supplied by two comboboxes,
cboStart and cboEnd (formatted as Date/Time), which lookup their respective
values from tblLog, on an unbound form "frmSelectToPrint". (cboEnd is
disabled until a selection is made in cboStart, at which point it is enabled
and filtered to only show dates greater than cboStart.) Can it be done this
way, and if so how? Or is tblLog structured improperly?
**************
Tables:
tblLog 'no date overlaps but often gaps
LogID '<autonum> PK
BeginDate 'short date (will always be greater than most recent
EndDate)
EndDate ' short date (will always be >= BeginDate and < today)
tblConsumed
ConsumptionID '<autonum> PK
CocktailID 'long FK
LogID 'long FK
QtySold 'long
tbl Cocktails
CocktailID '<autonum> PK
Cocktail 'text
tblCocktailIngredients
CocktailID 'long Compound Key with IngredID
IngredID 'long FK to tblIngredients
AmtPerCocktail 'long (units in cl)
****************
Hoping that someone takes pity and helps me out.
TIA,
Jeff
should have been dispensed based upon the number of cocktails sold for any
given time period(s). Date parameters are supplied by two comboboxes,
cboStart and cboEnd (formatted as Date/Time), which lookup their respective
values from tblLog, on an unbound form "frmSelectToPrint". (cboEnd is
disabled until a selection is made in cboStart, at which point it is enabled
and filtered to only show dates greater than cboStart.) Can it be done this
way, and if so how? Or is tblLog structured improperly?
**************
Tables:
tblLog 'no date overlaps but often gaps
LogID '<autonum> PK
BeginDate 'short date (will always be greater than most recent
EndDate)
EndDate ' short date (will always be >= BeginDate and < today)
tblConsumed
ConsumptionID '<autonum> PK
CocktailID 'long FK
LogID 'long FK
QtySold 'long
tbl Cocktails
CocktailID '<autonum> PK
Cocktail 'text
tblCocktailIngredients
CocktailID 'long Compound Key with IngredID
IngredID 'long FK to tblIngredients
AmtPerCocktail 'long (units in cl)
****************
Hoping that someone takes pity and helps me out.
TIA,
Jeff