Hello
I am working in Access 2007.
I have a dropdown list that shows the recorded number(RecordIDNo), community ID number (CommunityID) and community name (CommunityName )for the list of records associated with the community ID number. I want retrieve the record I click on in the dropdown list associated with the community ID. For example I have 3 records for community ID 00001, 4 and records from community ID 00005. I also have a table called “InputTable” that stores all the records in order of the record ID, then community ID number, then by state . The record I click on in the dropdown list does not always retrieve the correct record associated with the community ID. When I clicked record ID 1 I associated with community ID 00005, it retrieved record ID 1 of associated with community ID 00001 instead of community ID 00005. I noticed that it always takes the first record 1 for example. If I clicked on record ID 4 associated with community ID 00005 the correct record would be retrieved because there would not be a record ID 4 associated with community ID 00001.
Any help would be greatly appreciated. Thank you.
GMSRE
Listed below is the code I used.
Private Sub FindRECID_AfterUpdate()
''Me.FindRECID.Requery
'Find the record that matches the control.
Me.RecordsetClone.FindFirst "[RecordIDNo] = " & Me![FindRECID]
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
Private Sub FindRECID_Enter()
On Error Resume Next
Me.FindRECID.Requery
End Sub
I am working in Access 2007.
I have a dropdown list that shows the recorded number(RecordIDNo), community ID number (CommunityID) and community name (CommunityName )for the list of records associated with the community ID number. I want retrieve the record I click on in the dropdown list associated with the community ID. For example I have 3 records for community ID 00001, 4 and records from community ID 00005. I also have a table called “InputTable” that stores all the records in order of the record ID, then community ID number, then by state . The record I click on in the dropdown list does not always retrieve the correct record associated with the community ID. When I clicked record ID 1 I associated with community ID 00005, it retrieved record ID 1 of associated with community ID 00001 instead of community ID 00005. I noticed that it always takes the first record 1 for example. If I clicked on record ID 4 associated with community ID 00005 the correct record would be retrieved because there would not be a record ID 4 associated with community ID 00001.
Any help would be greatly appreciated. Thank you.
GMSRE
Listed below is the code I used.
Private Sub FindRECID_AfterUpdate()
''Me.FindRECID.Requery
'Find the record that matches the control.
Me.RecordsetClone.FindFirst "[RecordIDNo] = " & Me![FindRECID]
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
Private Sub FindRECID_Enter()
On Error Resume Next
Me.FindRECID.Requery
End Sub