Loose Focus of Subform

jboyle

New member
Local time
Today, 01:55
Joined
Nov 18, 2000
Messages
53
I have a main form that has a subform that the user enters data. After entering the data in the subform, I have the user click a button that Hides the subform and makes another subform visible. However, when they click on the button I get a run-time error about the form having focus. How can I make the subform loose focus when they click thhe button?
Thanks in advance - John
 
Move the focus somewhere else
ie. MyCommButton.SetFocus
Me.SubformName.Visible=False
etc
 

Users who are viewing this thread

Back
Top Bottom