I use Access 2003 on WinXP.
I use a text box to search for a member id. When it finds it, the
record pointer moves and the new record is displayed and the text box
is selected for me to type in a new id. That is OK.
When the id is not found, when I press Enter the next text box in the
tab order gets the focus. That is not OK. How do I let the current
text box keep the focus so I can type in a new id?
Private Sub txtSearch_AfterUpdate()
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[MemberID] = " & Str(Nz(Me![txtSearch], 0))
If Not rs.NoMatch Then
Me.Bookmark = rs.Bookmark
End If
End Sub
Regards,
Jan Nordgreen
--
My sites:
sharealink (favourite links) -
http://simpler-solutions.net/shareal..._main.php?id=1
jan's diary - http://simpler-solutions.net/pmachinefree/weblog.php
think again (seductive math problems for the modern mind) -
http://simpler-solutions.net/pmachin...thinkagain.php
mumnet (mathematical ulterior motives) - http://mumnet.tripod.com
free learning of mathematics (free online journal) -
http://simpler-solutions.net/pmachin...om.php?id=P206
modern times (tools for better schools) -
http://simpler-solutions.net/pmachin...oderntimes.php
miscajitas - http://miscajitas.tripod.com
photos from the Dominican Republic - http://janparasiempre.tripod.com
photos from Grand Cayman - http://janandcayman.tripod.com
simpler solutions (educational software) -
http://simpler-solutions.net
freedom to learn (resources for learning) -
http://freedomtolearn.tripod.com
http://jansgames0.tripod.com
http://janscv.tripod.com