Hi all,
I've spent a lot of time trying to work out how to do this without success. I have scoured the forums and havnt been able to find an obvious similar situation, which leads me to believe I probably shouldn't be doing it this way - but it kind of just has to be like this.
I have a table called tbldata that contains forecast quantities and dates required of particular supplies (as well as foreign key from supply table). For ease of data entry and oversight I'm trying to create a form where user can enter supplies required for each week. I want the form datasheet to display something like this:
Supplies(tblSuppliesFK) Week1 (TblData.Quantity) week2 (TblData.quantity) Week3 (TblData.Quantity) Week4 (TblData.quantity) bread 20 1 3 5 carrots 10 40 0 10 meat 10 0 20 3 Weeknumber is stored in a WeekNumber field of tblData, and above results for each column would need to be filtered
by =(DatePart("ww",Date())), =(DatePart("ww",Date()))+1, =(DatePart("ww",Date()))+2 etc. I have created an append query that inserts a value for each weeknumber for each supply as a 0 quantity on commencment of a new week.
my problem is that as soon as i add more than one week im no longer able to change the data, if i create multiple subforms i can no longer be sure that the rows contained in subsequent weeks will line up with supplies and could result in incorrect data being captured.
I would be most grateful if someone could provide a suggestion on how to do this (or closest possible alternative)
thanks