Hello,
I have a continuous form bound to a table. The form's Navigation Buttons property is set to Yes, so I have the buttons at the bottom of the form giving me the ability to navigate between records, and especially the ability to add a new record (the button with the Arrow and Asterisk). The Primary Key field of my table is bound to a textbox control on the form, and the control's Locked property is set to Yes, so the PK cannot be edited for any existing records.
My dilemma is when I add a new record, my app does not allow me to edit this PK textbox control, and I am "stuck" in a endless state where the app insists I add something to the PK's textbox control, yet because this control is Locked, I cannot enter any text in it.
So my question is, is there an event I can use that will fire whever the default Add New Record button (button with an Arrow and an Asterisk) is clicked, and another event after a record is added, so I can Lock/Unlock this control as appropriately? Since these Navigation Buttons seem to have their code embedded (no VBA is added that I found), I can't see what they're actually doing.
Any help would be appreciated!
Thanks,
Scott
I have a continuous form bound to a table. The form's Navigation Buttons property is set to Yes, so I have the buttons at the bottom of the form giving me the ability to navigate between records, and especially the ability to add a new record (the button with the Arrow and Asterisk). The Primary Key field of my table is bound to a textbox control on the form, and the control's Locked property is set to Yes, so the PK cannot be edited for any existing records.
My dilemma is when I add a new record, my app does not allow me to edit this PK textbox control, and I am "stuck" in a endless state where the app insists I add something to the PK's textbox control, yet because this control is Locked, I cannot enter any text in it.
So my question is, is there an event I can use that will fire whever the default Add New Record button (button with an Arrow and an Asterisk) is clicked, and another event after a record is added, so I can Lock/Unlock this control as appropriately? Since these Navigation Buttons seem to have their code embedded (no VBA is added that I found), I can't see what they're actually doing.
Any help would be appreciated!
Thanks,
Scott