code::::::
Private Sub Combo35_Click()
Dim rs As DAO.Recordset
Set rs = Me.RecordsetClone
If rs.EOF And rs.BOF Then
MsgBox "No records"
rs.Close
Set rs = Nothing
End If
rs.MoveLast
rs.MoveFirst
Do While Not rs.EOF
If Me.Combo35 = rs("LocationAddress" Then
Me.Bookmark = rs.Bookmark
Exit Do
End If
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
Why in the name of Bill Gates would anyone try to make something so complicated when Access has a built in Wizard that will do the job in about two minutes?
Base your form on a query that shows the fields of the record that you want to display. Place a combobox on the form. The Access Wizard will ask you what you want to do with the combobox value. The third choice is something like "Find a record on my form based on the value I selected". Select this, click "Next", and choose the field that contains the "Initiative". Follow the wizard's instruction (I think you just click "Finish" to complete it).
Hope this helps.
The Missinglinq
"It's got to be the going,
not the getting there that's good!"
-Harry Chapin
I've already created the combo box, and its value changes based on the value of another combo box, which took me a long time to complete, so now I can't go back and change it. I was just wondering if theres a simple way to do it at this juncture.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.