hi guys
i wana put this code on exit event of a text box but if i don't enter any thing in that then press tab or enter it shows me the debug msgbox
Me.CODE.SetFocus
DoCmd.FindRecord codesearch, acEntire, , acSearchAll, , acCurrent
DoCmd.GoToRecord acActiveDataObject, , acGoTo, CurrentRecord
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
would u please help me fix it ?!
i wana put this code on exit event of a text box but if i don't enter any thing in that then press tab or enter it shows me the debug msgbox
Me.CODE.SetFocus
DoCmd.FindRecord codesearch, acEntire, , acSearchAll, , acCurrent
DoCmd.GoToRecord acActiveDataObject, , acGoTo, CurrentRecord
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
would u please help me fix it ?!