Hi,
I have subform in main "Employees" form presenting Holidays (StartDate, NrDAys, Comment..)
In the form (OnLoad) permitions
AllowAdditions
AllowDelitions
AllowEdits
are set on False. Particular operator (OperatorID) can do change with Commandbuttons event code setting them True, before Adding new record, edit or delete record, respectively.
Problem:
When the subform has no records, clicking Edit or Delete record is causing "Runtime error 2105. You can't go to specified record!".
Question: What would be the simplest way of checking if there is any record in the subform to continue setting permitions and perform task or exit?
Thanks,
BM
I have subform in main "Employees" form presenting Holidays (StartDate, NrDAys, Comment..)
In the form (OnLoad) permitions
AllowAdditions
AllowDelitions
AllowEdits
are set on False. Particular operator (OperatorID) can do change with Commandbuttons event code setting them True, before Adding new record, edit or delete record, respectively.
Problem:
When the subform has no records, clicking Edit or Delete record is causing "Runtime error 2105. You can't go to specified record!".
Question: What would be the simplest way of checking if there is any record in the subform to continue setting permitions and perform task or exit?
Thanks,
BM