I am currently creating an Access 2000 Project that ties into a SQL 2000 database. I am modeling it after an Access 2000 database that I had originally created (tables in Access). I have a form with a combo box that is populated by a query. Based on the selection in the combo box (in the form header) it finds the appropriate record in the detail section. The code I used to do this in the original is:
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[WorkID] = " & Str(Me![Combo48])
Me.Bookmark = rs.Bookmark
In my Access 2000 project (SQL 2000 backend), I know that I need to modify this logic, but I haven't been able to figure out exactly what I need to do. I have been trying to filter the form and using the find command, but I have been unsuccessful in coming up with the correct syntax.
Any thoughts? Thank you very much for your help.
nickela
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[WorkID] = " & Str(Me![Combo48])
Me.Bookmark = rs.Bookmark
In my Access 2000 project (SQL 2000 backend), I know that I need to modify this logic, but I haven't been able to figure out exactly what I need to do. I have been trying to filter the form and using the find command, but I have been unsuccessful in coming up with the correct syntax.
Any thoughts? Thank you very much for your help.
nickela