I have a subform "frm_Obs" on my main form "frm_Main"
If there is no records, I want the user to be able to add one. If there allready is one, I want the user to be able to change it, but not add anymore.
What I tried doing was add code to OnCurrent saying:
The problem is that when I go another record in the main form, and allowadditions is false, there will be no OnCurrent event fired, and thus the AllowAdditions will never be set back to False.
Suggestions people?
If there is no records, I want the user to be able to add one. If there allready is one, I want the user to be able to change it, but not add anymore.
What I tried doing was add code to OnCurrent saying:
Code:
Private Sub Form_Current() Me.AllowAdditions = (Me.Recordset.RecordCount = 0) End Sub
Suggestions people?
Comment