E
Elsie
hi all, have a table with following fields:
item: item code
cust-seq: ship-to destination code
cust-num: customer code
forecast-year: year which forecast is for
qty-jan: qty for this item in January (followed by qty-feb, qty-mar,
qty-apr, qty-may, qty-jun, qty-jul, qty-aug, qty-sep, qty-oct, qty-nov,
qty-dec)
price-jan: price for this item in January (followed by price-feb, price-mar,
price-apr, price-may, price-jun, price-jul, price-aug, price-sep, price-oct,
price-nov, price-dec)
amt-jan: price for this item in January (followed by amt-feb, amt-mar,
amt-apr, amt-may, amt-jun, amt-jul, amt-aug, amt-sep, amt-oct, amt-nov,
amt-dec)
I am using the appropriate qty, price and amt for a certain month in a query
based on this table, which will be displayed in a report to the user after
some calculations.
but how can I allow the user to do selection of the correct qty, price and
amt?
e.g.: if the user wishes to get data for august, meaning that qty-aug,
price-aug and amt-aug should be selected in my query. if the fields of the
query from the previous month are qty-jul, price-jul and amt-jul, how do I
change these fields to get the august data, without having for me to go into
query and grab the fields from the table?
I have a form whereby users can select current month, last month and next
month.
item: item code
cust-seq: ship-to destination code
cust-num: customer code
forecast-year: year which forecast is for
qty-jan: qty for this item in January (followed by qty-feb, qty-mar,
qty-apr, qty-may, qty-jun, qty-jul, qty-aug, qty-sep, qty-oct, qty-nov,
qty-dec)
price-jan: price for this item in January (followed by price-feb, price-mar,
price-apr, price-may, price-jun, price-jul, price-aug, price-sep, price-oct,
price-nov, price-dec)
amt-jan: price for this item in January (followed by amt-feb, amt-mar,
amt-apr, amt-may, amt-jun, amt-jul, amt-aug, amt-sep, amt-oct, amt-nov,
amt-dec)
I am using the appropriate qty, price and amt for a certain month in a query
based on this table, which will be displayed in a report to the user after
some calculations.
but how can I allow the user to do selection of the correct qty, price and
amt?
e.g.: if the user wishes to get data for august, meaning that qty-aug,
price-aug and amt-aug should be selected in my query. if the fields of the
query from the previous month are qty-jul, price-jul and amt-jul, how do I
change these fields to get the august data, without having for me to go into
query and grab the fields from the table?
I have a form whereby users can select current month, last month and next
month.