A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Click to scroll



 
 
Thread Tools Display Modes
  #1  
Old March 2nd, 2010, 03:58 AM posted to microsoft.public.access
Richard
external usenet poster
 
Posts: 1,419
Default Click to scroll

Hi

I have a listbox populated with contact names. When I click 'd', it goes to
the names that starts with 'd'.

How do I duplicate it in a continuous subform with a textbox?

Many thanks in advance
Richard
  #2  
Old March 2nd, 2010, 09:05 AM posted to microsoft.public.access
Stefan Hoffmann
external usenet poster
 
Posts: 991
Default Click to scroll

hi Richard,

On 02.03.2010 04:58, Richard wrote:
I have a listbox populated with contact names. When I click 'd', it goes to
the names that starts with 'd'.

How do you 'click' a 'd'?

How do I duplicate it in a continuous subform with a textbox?

Enable the forms key preview property on the Event tab. Add an event
procedure for the Key Pressed event, e.g.:

Private Sub Form_KeyPressed(KeyCode As Integer)

Dim rs As DAO.Recordset

Set rs = Me.RecordsetClone
rs.FindFirst _
"[fieldNameBoundToYourTextBox] LIKE '" & Chr(KeyCode) & "*'"
If Not rs.NoMatch Then
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing

End Sub


mfG
-- stefan --
  #3  
Old March 4th, 2010, 04:11 AM posted to microsoft.public.access
Richard
external usenet poster
 
Posts: 1,419
Default Click to scroll

Dear Stefan

Many thanks for your help.

Richard

"Stefan Hoffmann" wrote:

hi Richard,

On 02.03.2010 04:58, Richard wrote:
I have a listbox populated with contact names. When I click 'd', it goes to
the names that starts with 'd'.

How do you 'click' a 'd'?

How do I duplicate it in a continuous subform with a textbox?

Enable the forms key preview property on the Event tab. Add an event
procedure for the Key Pressed event, e.g.:

Private Sub Form_KeyPressed(KeyCode As Integer)

Dim rs As DAO.Recordset

Set rs = Me.RecordsetClone
rs.FindFirst _
"[fieldNameBoundToYourTextBox] LIKE '" & Chr(KeyCode) & "*'"
If Not rs.NoMatch Then
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing

End Sub


mfG
-- stefan --
.

  #4  
Old March 13th, 2010, 05:55 PM posted to microsoft.public.access
De Jager
external usenet poster
 
Posts: 393
Default Click to scroll


"Richard" wrote in message
...
Hi

I have a listbox populated with contact names. When I click 'd', it goes
to
the names that starts with 'd'.

How do I duplicate it in a continuous subform with a textbox?

Many thanks in advance
Richard


  #5  
Old March 17th, 2010, 01:33 PM posted to microsoft.public.access
joelgeraldine
external usenet poster
 
Posts: 201
Default Click to scroll

llmo*ùp
*


"Richard" a écrit dans le message de
groupe de discussion : ...
Hi

I have a listbox populated with contact names. When I click 'd', it goes
to
the names that starts with 'd'.

How do I duplicate it in a continuous subform with a textbox?

Many thanks in advance
Richard


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.