C
Crumfert
I have a Form (DrawingData) with a Subform (REVS Subform). In the main Form
is a field that is to display the Max Value of the Subform. I was using the
DMax function in the Countrol Source:
=DMax("[RevNum]","REVS","[DrawingNumber] =
[DrawingDataSheet]![DrawingNumber] ")
This works as longer as there are records in the subform. But when the
subform is empty, I get #ERROR.
I have found some info regarding the IIF function, but can't seem to figure
out how exactly to use it with my forms & with the DMax function.
Any help would be greatly appreciated. Thanks.
is a field that is to display the Max Value of the Subform. I was using the
DMax function in the Countrol Source:
=DMax("[RevNum]","REVS","[DrawingNumber] =
[DrawingDataSheet]![DrawingNumber] ")
This works as longer as there are records in the subform. But when the
subform is empty, I get #ERROR.
I have found some info regarding the IIF function, but can't seem to figure
out how exactly to use it with my forms & with the DMax function.
Any help would be greatly appreciated. Thanks.