• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

AfterUpdate event

I have a subform viewed as a continuous form. I'm trying to do something simple but its not coming out correct. I have a double click event in my txtPN, a popup form comes up and the user double clicks on a Part number, item goes into my txtPN.  how do I do an Afterupdate and automatically have the cursur go to my next textbox of  txtQTY.  
0
goingolfn99
Asked:
goingolfn99
3 Solutions
 
jmantha709Commented:
What do you have so far ?

Did you try :

txtQTY.SetFocus
0
 
mbizupCommented:
When you open the popup for in the double-click event, open it as acdialog, so that the code will resume when the popup closes... something like this:

Private Sub txtPN_DoubleClick()
   Docmd.openform "Yourpopupformname",,,,,acdialog  '*** check the number of commas here (aircode)
   me.txtQty.setfocus         '** go to next textbox
end sub
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
In you popup routine:

Me.txtPN.Text = <the part number>
Me.txtQTY.SetFocus

mx
0
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
goingolfn99Author Commented:
Thanks guys
0
 
mbizupCommented:
Glad to help :)
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
and Girls :-)

mx
0
 
mbizupCommented:
thx, mx :-)
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Tackle projects and never again get stuck behind a technical roadblock.
Join Now