Never mind, I got it.
Me.Refresh SendKeys "^{HOME}"
-- Thanks for taking the time!
CJ --------------------------------------------------------- Know thyself, know thy limits....know thy newsgroups! "CJ" <private[ at ]newsgroups.com> wrote in message news:A600E2B8-BD92-43CD-BE3E-7E320A3BF2D6[ at ]microsoft.com...
[Quoted Text] > Hi again Groupies > > When the listbox on my form receives the focus, I would like it's first > record to be selected. How do I make this happen with code? > > I have tried: > > Private Sub lstShopInventory_GotFocus() > Dim rst As DAO.Recordset > Me.Refresh > Set rst = Me.Recordset > rst.GetRows 1 > End Sub > > ...nothing happened.... > > -- > Thanks for taking the time! > > CJ > --------------------------------------------------------- > Know thyself, know thy limits....know thy newsgroups!
|