I have two tables:
I have two queries:
I want the form/ subform to force an entry if there is a discrepency
and I am at a bit of a loss.
I do not know whether I have made an error with my tables, queries or forms. It just doesn't do what I would like it to do...
I have included the database with the names stripped out and enough data entered to show what it is doing, along with a few changes to the financial details ( I doubt it would matter in this instance but this is for work and it is their information not mine
)
Can someone please point me in the right direction?
Thanks in advance
- Records the how many, when and who emptied from a coin operated machine.
- Collects the explanation when the money collected does not tally with the expectation derived from the readings taken.

I have two queries:
- Calculates the expected machine total for each record and provides the basis for a form to collect the data for table one.
- *error here?* Is supposed to collect an explanation when the hand count does not equal the machine total. Is used to produce form 2.
- Collects the data for table 1
- Is supposed to collect the data for table 2 and is included as a subform in the footer of form 1.
I want the form/ subform to force an entry if there is a discrepency
Code:
Explanation required: [Reading]-DLookUp("[Reading]","Body Drier","[TransID] = " & [TransID]-1)-Hand count <> "0"
I do not know whether I have made an error with my tables, queries or forms. It just doesn't do what I would like it to do...
I have included the database with the names stripped out and enough data entered to show what it is doing, along with a few changes to the financial details ( I doubt it would matter in this instance but this is for work and it is their information not mine

Can someone please point me in the right direction?
Thanks in advance
