C
Capt. A. Morgan via AccessMonster.com
Hi all,
I have a list box [List77] on a bound form and i would like to be able to
click on the info in the list box and have the corosponding record show up in
the form. The field on the form that I am trying to have the list box [List77]
search is [TTS] which is a text field. When I click on the list box I get a
"Runtime error '3464'
Data type mismatch in criteria expression."
The code that I am using is:
Sub List77_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[TTS] = " & Str(Me![List77])
Me.Bookmark = rs.Bookmark
End Sub
If anyone has any ideas that could help I would really appreciate it.
Thanks,
A. Morgan
I have a list box [List77] on a bound form and i would like to be able to
click on the info in the list box and have the corosponding record show up in
the form. The field on the form that I am trying to have the list box [List77]
search is [TTS] which is a text field. When I click on the list box I get a
"Runtime error '3464'
Data type mismatch in criteria expression."
The code that I am using is:
Sub List77_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[TTS] = " & Str(Me![List77])
Me.Bookmark = rs.Bookmark
End Sub
If anyone has any ideas that could help I would really appreciate it.
Thanks,
A. Morgan