G
Guest
Dear Sir/Madam,
I have a table with a field (type character)
I created a form with the form property allowadditions = no
When the recordset.recordcount = 0 there is code that add a new record to
the file whith the value "."
ALso i have a button in the form witch add a new record
the code is
Me.Form.AllowAdditions = True
Me.Form.Refresh
Me!City.SetFocus
DoCmd.RunCommand (acCmdRecordsGoToNew)
Me!City.SetFocus
and the property AfterInsert Property of the form has the following code:
Me.Form.AllowAdditions = False
My problem is that when i click then add button for first time it works, but
the second time when i click to add a new record it appears a message "This
action is not available now".
What can i do about it?
I have a table with a field (type character)
I created a form with the form property allowadditions = no
When the recordset.recordcount = 0 there is code that add a new record to
the file whith the value "."
ALso i have a button in the form witch add a new record
the code is
Me.Form.AllowAdditions = True
Me.Form.Refresh
Me!City.SetFocus
DoCmd.RunCommand (acCmdRecordsGoToNew)
Me!City.SetFocus
and the property AfterInsert Property of the form has the following code:
Me.Form.AllowAdditions = False
My problem is that when i click then add button for first time it works, but
the second time when i click to add a new record it appears a message "This
action is not available now".
What can i do about it?