i've searched the FAQs and read several of the posts in the forum and still come up with a blank for my question.
i have a one field form...
On the form i have two labels to show users they are either editing or adding records.
OnCurrent:
Editing works correctly. Adding does not.
btnAddRcd:
As You can see i've tried resetting "AllowAdditions" and saving the previous record but i still get "You can't go to the specified record."
This table is a lookup table to allow easy lookups to frequently accessed data and i could allow direct adding and editing but prefer not to so that the whole application acts the same throughout.
Any ideas?
Thanks,
Dave
i have a one field form...
On the form i have two labels to show users they are either editing or adding records.
OnCurrent:
Code:
Me.AllowAdditions = False
Me.AllowEdits = False
Me.lblEditing.Visible = False
Me.lblAdding.Visible = False
Me.btnGoNext.SetFocus
Editing works correctly. Adding does not.
btnAddRcd:
Code:
On Error GoTo Err_btnAddRcd_Click
Me.lblAdding.Visible = Not Me.lblAdding.Visible
'Me.AllowAdditions = True
Me.AllowEdits = True
Me.DataEntry = True
'DoCmd.RunCommand acCmdSaveRecord
DoCmd.GoToRecord , , acNewRec
Exit_btnAddRcd_Click:
Exit Sub
Err_btnAddRcd_Click:
MsgBox Err.Description
Resume Exit_btnAddRcd_Click
This table is a lookup table to allow easy lookups to frequently accessed data and i could allow direct adding and editing but prefer not to so that the whole application acts the same throughout.
Any ideas?
Thanks,
Dave