D
Design by Sue
On a continuous subform with only one field (suffix) I need to automatically
enter 0 when the field gets focus and then set the focus to the next record
in the subform, leaving the 2nd record blank and ready for the user to enter
a number. I have tried in the field's OnGotFocus event the following code.
If IsNull(Forms!InPutFrm!SuffixSubFrm!Suffix) Then
Forms!InPutFrm!SuffixSubFrm!Suffix = 0
EndIf
I had the code to go the next record after that but as you can quickly see,
that puts a 0 in the second record and I get an error message that it created
a duplicate.
So I now need help to make this work only on the first record.
All assistance greatly appreciated!
Sue
enter 0 when the field gets focus and then set the focus to the next record
in the subform, leaving the 2nd record blank and ready for the user to enter
a number. I have tried in the field's OnGotFocus event the following code.
If IsNull(Forms!InPutFrm!SuffixSubFrm!Suffix) Then
Forms!InPutFrm!SuffixSubFrm!Suffix = 0
EndIf
I had the code to go the next record after that but as you can quickly see,
that puts a 0 in the second record and I get an error message that it created
a duplicate.
So I now need help to make this work only on the first record.
All assistance greatly appreciated!
Sue