Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOCMD.GOTOCONTROL subform to form

Status
Not open for further replies.

fredpeters555

Technical User
Jul 16, 2003
19
CA
I have:
a mainform called fScoutTrees
a subform called qt2000Info subform7.

When a subform field Text9 Gets Focus I want to auto-go to
cmdAdd in fScoutrees
Using DOCMD.gotocontrol, I cant get it to find the control!!

Help

Just remember...they're only ones and zero's you're playing with.
Fred
 
found it...thanks all
Me.Parent.cmdAdd.SetFocus

Just remember...they're only ones and zero's you're playing with.
Fred
 
Hi.

I have a simple form with a listbox: List0 and a text box: Text1

The goal is to use a barcode scanner to populate the Listbox without having to stop between each scan to move the cursor or whatnot. My solution is to have the textbox for data entry.

My code for the textbox is as follows:
Code:
Private Sub Text1_AfterUpdate()
    List0.AddItem Item:=Text1.Value 
    Text1.Value = ""
    Text1.setfocus
end sub

However, the form won't set the focus back on the textbox. Is there a better way to accomplish this?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top