Is the record number an autonumber or is it a user-defined record number?
If an autonumber, it will not appear, nor will the record become dirty, until you start typing values in the other fields. If this is the case, one wonders why you are showing record numbers. Autonumbers are not suppsed to be seen by users and make no sense to anyone. They're used ONLY by the computer to relate primary and foreign keys in various tables to each other.
If your record number is user-defined and "makes sense" to the user, the second you compile it and place it into the record number textbox, your record will be considered dirty. To avoid that, don't actually set the record number. Iinstead, compile its value like you normally do, but set the textbox's DEFAULT VALUE equal to the new record number. The default value will show, but because you didn't set the actual value of the textbox (just its default), the record will not be dirty. When you start typing in another field, the record number's default will be automatically entered into the field for you and THEN the record will become dirty as you type somewhere else.
__________________
Greg Serrano
Michigan Dept. of Environmental Quality
Air Quality Division
|