LucianoOliveira
New Member
- Joined
- May 1, 2009
- Messages
- 3
I have an "Input data" form and all I'd like to do was to add a code so when the user press the button Ok it'd check each texbox and if it's empty show a error message and setfocus back to the empty textbox.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
I'm a new vba user, however I managed to check the textboxes using a looping through the controls "For Each cCount...", but for any reason the cCount.Setfocus doesn't work.<o></o>
<o></o>
Please, any help would be greatly appreciated.<o></o>
<o></o>
Cheers<o></o>
<o></o>
I'm a new vba user, however I managed to check the textboxes using a looping through the controls "For Each cCount...", but for any reason the cCount.Setfocus doesn't work.<o></o>
<o></o>
Please, any help would be greatly appreciated.<o></o>
<o></o>
Cheers<o></o>