D
dirk van waes
hi,
On my continous form I have a textbox (znaam) in the form-heading. On the
"change"-event, I look in my recordset for a match with the text I type ,
and then I try to go to that record on my form.
This works fine as long as I do not type a space. When I do that(as in "De
Bock") access looks always for a text without the space at the end, and it
is impossible to type a character after the space.( since the space always
seems to disappear).
What should I do to avoid this error?
TIA
Dirk
Dim mijnset As Recordset
Me.RecordSource = "SELECT leden.NAAM FROM leden ORDER BY leden.NAAM;"
Set mijnset = Me.RecordsetClone
mijnset.FindFirst "NAAM like '" & Me!znaam & "*'"
If Not mijnset.NoMatch Then
Me.Bookmark = Me.RecordsetClone.Bookmark
End If
Me!znaam.SetFocus
Me!znaam.SelStart = Len(Me!znaam)
On my continous form I have a textbox (znaam) in the form-heading. On the
"change"-event, I look in my recordset for a match with the text I type ,
and then I try to go to that record on my form.
This works fine as long as I do not type a space. When I do that(as in "De
Bock") access looks always for a text without the space at the end, and it
is impossible to type a character after the space.( since the space always
seems to disappear).
What should I do to avoid this error?
TIA
Dirk
Dim mijnset As Recordset
Me.RecordSource = "SELECT leden.NAAM FROM leden ORDER BY leden.NAAM;"
Set mijnset = Me.RecordsetClone
mijnset.FindFirst "NAAM like '" & Me!znaam & "*'"
If Not mijnset.NoMatch Then
Me.Bookmark = Me.RecordsetClone.Bookmark
End If
Me!znaam.SetFocus
Me!znaam.SelStart = Len(Me!znaam)