FuzMic
DataBase Tinker
- Local time
- Today, 18:52
- Joined
- Sep 13, 2006
- Messages
- 744
Hi forum mates
This thread aims to share a sticky issue relating to the use of Docmd.GotoControl within a BeforeUpdate event script for a form. The Access in use is 2003 SP2 or 2002 SP3.
2 errors occur when a script runs into GotoCtrl statement during the beginning of an execution of a form
1 There is no field named FldName in the current record (2109)
2 The command or action "GotoControl" isn't available now (2046)
These errors will disappear after the script had handle the errors once.
To go around this problem, I replace the GotoCtrl statement with Control.setFocus.
Question:
Is there some constraint in the use of GotoC.. or why Ctrl.SetF.. works perfectly.
Views appreciate to understand what's happening.
This thread aims to share a sticky issue relating to the use of Docmd.GotoControl within a BeforeUpdate event script for a form. The Access in use is 2003 SP2 or 2002 SP3.
2 errors occur when a script runs into GotoCtrl statement during the beginning of an execution of a form
1 There is no field named FldName in the current record (2109)
2 The command or action "GotoControl" isn't available now (2046)
These errors will disappear after the script had handle the errors once.
To go around this problem, I replace the GotoCtrl statement with Control.setFocus.
Question:
Is there some constraint in the use of GotoC.. or why Ctrl.SetF.. works perfectly.
Views appreciate to understand what's happening.

Last edited: