helenpostle
02-06-2002, 03:39 AM
I've got a field called sampleNo and one called newSampleNo. newSampleNo runs a query to find the largest sampleNo in the table and adds 1 to it. If I set code for the double click event of this field to Me!sampleNo = Me!newSampleNo.Value, when I double click the field, sampleNo is updated. However, I would like to set the same code in the form onLoad event but it keeps coming up with an error saying the field sampleNo can't contain a null value. I can't understand why the code works for a double click event but not for an onload event? Can anyone help please
Helen
Helen