First off thanks to Rod on my last impossible question how he sorted it i will never understand but he did.
Well he goes with problem number 2 not sure how i can explain it, i have added a couple of images for you to look at that might help with what i am after.
I have a table (sampletaken) in this table i have
Unique ID
Code
Date
A
B
C
D
E
I have a second Table (Codechange) in this table i have
Unique ID
Code
Date
A
B
C
D
E
Right what we have is people taking samples and inputing data into Sampletaken just Date and Code, The ABCDE are ingredient totals for each Code.
We also have someone coming along every so often and changing the ingredients in Codechange they will input all fields Date,Code,ABCDE.
What i need is a form so that if someone wanted to take a sample they would enter in the code of the sample and the date and it would automatically return the current ingredient list, for example the last change in the list but before the date the sample was taken.
I have made a database where it auto returns the ingredient lists but the problem is if i was to change the ingredients on monday then sample on wednesday all the previous samples of that code would be the same ingredients. This has really got me stumped and i dont know enough about SQL/Queries to design what apears to be a massive undertaking. Now that being said im sure if i have explained this well enough (probably not) there will be someone whom will come up with the answer in about ten mins.
Cheers in advance
Mac