hi VBAiNet
Thanks for quick response :-) and appreciate the heads up on the syntax.
Treatment number is number (Single) and when I tried your revised dmax (amended your one to show the table name first ...I now get an #Error message
=DMax("Tbl_Treatment_Details","TreatmentNumber","txtPatientID...