Hello again, thanks for all your help so far, but the further on I get with this DB the more I realise I can't do! So far the code you have given me is working fine, however I had actually intended to use this for a slightly more complex process which I thought I'd be able to work out, but I can't get my head round it.
1) Ok basically the first thing I have been trying to do is get a running count of all the scores entered (i.e. only those above 0), I thought I would be able to modify your code slightly to do this by changing the dtotal to a dcount, but I wasn't quite sure how to go about this, so I thought I'd leave it to someone who actually knows what they are doing.
2) I then want to create an average, which is simple enough, that will just be Running/Count.
3) This next bit may be a bit tricky, basically I then want to create another field which is calculating a handicap score (this is calculated as 0.67*(200-Average), however I want this handicap to appear for the following record, i.e. if scores are entered on the 02/02/03 and the next record is dated 02/03/04 I want the handicap from the first record to appear for the second. Looking at your code it may be possible to use your dmax statement to somehow pull this out, I'm going to carry on playing around with it, but I am unlikely to get very far so if you get a chance to help me out that would be great.
Oh one more thing, which is actually probably the most important part, and the part I am having the most trouble with. Basically each record is assigned to a different person, based on a number (eg. John is 1, Mike is 2 etc.), I need the running sum (and all the other parts to apply to each person rather than the DB). I have attached a sample DB to show you what I have so far.
Cheers,
Vidal