Hello All,
Hope everyone had a great holiday!
I am setting up some public function for my cmdButtons and need some assistance. I have most of them worked out but need some knowledge on the following: Here is what I have so far.
Public Function GotoNew()
'create new record
Screen.ActiveForm.AllowAdditions = True
Screen.ActiveForm.CmdPrint.Enabled = False
Screen.ActiveForm.CmdEdit.Enabled = False
Screen.ActiveForm.CmdCancel.Enabled = True
Screen.ActiveForm.CmdClose.Enabled = False
Screen.ActiveForm.CmdNew.Enabled = False
Screen.ActiveForm.CmdFirst.Enabled = False
Screen.ActiveForm.CmdPrev.Enabled = False
Screen.ActiveForm.CmdNext.Enabled = False
Screen.ActiveForm.CmdLast.Enabled = False
Screen.ActiveForm.OnDirty.CmdUndo.Enabled = True (This does not work?)Enable only if Dirty
Screen.ActiveForm.OnDirty.CmdSave.Enabled = True (This does not work?)Enable only if Dirty
DoCmd.RunCommand acCmdRecordsGoToNew
End Function
I would also like some help in changing the caption on form to:
Screen.ActiveForm.Caption. ??????
If current form is Cities, then I would like it to read Cities:AddNew
I just dont know how to call out the existing caption on active form and change the caption?
Thank you,
dave