Can't get Dmax +1 to work

I need it in 2003 please.
 
I need Glasses.

The L is missing in tblBalance.
 
I need Glasses.

The L is missing in tblBalance.

It is there when I look at it...very strange.

I even downloaded the one I uploaded and checked that.

I don't know what is going on then.
 
Here it is in a Query.

Just open the query to see the result, then copy paste into your code.

End of day for me. Will check back in the morning.
 

Attachments

Opening the query, gave the result of 8 for each and every record.

I copied and pasted the query code into my qryBalance and ran it, where it gave a result of 1 for each and every record.

I then cut and pasted the said code into the BeforeUpdate event, but as ever, it did not give any results.

Interestingly, when I used the code in the qryBalance, no results were written to the tblBalance.

Thanks
 
Last edited:
Interestingly, when I used the code in the qryBalance, no results were written to the tblBalance.

The query is only a Select Query with a Calculated Field. It is not meant to update the Table.

DMax("[CountID]","tbBalance")

I will create a Form with the code working.

It will be sometime later today.
 
Aah yes, I see what you mean about the L missing, I never really noticed , but I did make sure it was right in the coding window.

Well it's the end of my day now so I'll have a look tomorrow.
 
I had seen that example during my search for help on this subject, and now I'll have a good look at it to see if I can adapt for my needs.

I have had a cursory look and copied to code, changing as required, but no luck yet.

I will investigate further.

Thanks
 

Users who are viewing this thread

Back
Top Bottom