SetFocus to SubFrom, How?

johndoh!!

Registered User.
Local time
Today, 21:09
Joined
Oct 18, 2001
Messages
26
I am trying to move the focus to a text box on a subform using the onClick event from another subForm. Here is the code that does not work, any ideas?

Forms![frmChange]![DSP Lighting Inc - New Order Details].Form![OrdersDetails].SetFocus
Forms![frmChange]![DSP Lighting Inc - New Order Details].Form![OrdersDetails].Form![Special].SetFocus

If i remove the .SetFocus and insert = "Blah" it does change the Special field.

Any help would be great!
D'oh!!
 
Here i go again, i post a question and just about that fast i find the answer! If your interested here it is:

Forms![frmChange]![DSP Lighting Inc - New Order Details].SetFocus
Forms![frmChange]![DSP Lighting Inc - New Order Details].Form![OrdersDetails].SetFocus
Forms![frmChange]![DSP Lighting Inc - New Order Details].Form![OrdersDetails].Form![Special].SetFocus
 

Users who are viewing this thread

Back
Top Bottom