S
serviceman via AccessMonster.com
Hi All,
I have a combo box that looks up records on a table with a clustered key.
Here is the After_update code:
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.Find "[EVENT_ID] = " & Str(Nz(Me![Combo14], 0)) & " AND [EVENT_DAT] =
" & Me.Combo14.Column(1) & " AND [LOCATION_ID] = " & Str(Nz(Me!Combo14.Column
(2), 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Problem is that I keep getting and error 3001: Type mismatch with this code.
I think it is in the EVENT_DAT portion, but I can't seem to get it. I've
tried using Str(Nz... and still no luck. Am I on the right track or is this
wrong all together?
Andy
I have a combo box that looks up records on a table with a clustered key.
Here is the After_update code:
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.Find "[EVENT_ID] = " & Str(Nz(Me![Combo14], 0)) & " AND [EVENT_DAT] =
" & Me.Combo14.Column(1) & " AND [LOCATION_ID] = " & Str(Nz(Me!Combo14.Column
(2), 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Problem is that I keep getting and error 3001: Type mismatch with this code.
I think it is in the EVENT_DAT portion, but I can't seem to get it. I've
tried using Str(Nz... and still no luck. Am I on the right track or is this
wrong all together?
Andy