Solved

AfterUpdate event

Posted on 2007-04-04
7
349 Views
Last Modified: 2007-04-04
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
Comment
Question by:goingolfn99
7 Comments
 
LVL 15

Assisted Solution

by:jmantha709
jmantha709 earned 100 total points
ID: 18853496
What do you have so far ?

Did you try :

txtQTY.SetFocus
0
 
LVL 61

Accepted Solution

by:
mbizup earned 200 total points
ID: 18853511
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
 
LVL 75

Assisted Solution

by:DatabaseMX (Joe Anderson - Access MVP)
DatabaseMX (Joe Anderson - Access MVP) earned 200 total points
ID: 18853529
In you popup routine:

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

mx
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

Author Comment

by:goingolfn99
ID: 18853582
Thanks guys
0
 
LVL 61

Expert Comment

by:mbizup
ID: 18853596
Glad to help :)
0
 
LVL 75
ID: 18853611
and Girls :-)

mx
0
 
LVL 61

Expert Comment

by:mbizup
ID: 18853618
thx, mx :-)
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question