gusbrunston
Programmer
Hi:
I always try to be as brief as possible, but this time...please bear with me!
Combo box on a form to find a particular record with the PK has worked for months. Then I installed OfficeXP. This particular form only, the combo box went awry. Will find the records for about half of the 171 records (from an SQL statement that returns 171 records, no problem) and not for the other half of the records. For the ones it won't find I get a "Can't go to that record" error, and debugs as follows:[tt]
**************************************************
Private Sub ComboID_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.RecordsetClone
rs.FindFirst "[TenantID] = " & Str(Me![ComboID])
Me.Bookmark = rs.Bookmark
ComboID = ""
End Sub
**************************************************[/tt]
Ok, I removed Office XP, installed Office 2000, and all the update service packs.
Still have the problem. I thought it might be a difference in VBA between XP and 2000, because there seems to be two ways to say "Me.RecordsetClone"...that way and "Me.Recordset.Clone", with the dot...don't know which version uses which.
Any clues will be very much appreciated.
Glad to post any additional information you think might be helpful
[tt] Gus Brunston - Access2002(DAO)[/tt] Intermediate skills.
I always try to be as brief as possible, but this time...please bear with me!
Combo box on a form to find a particular record with the PK has worked for months. Then I installed OfficeXP. This particular form only, the combo box went awry. Will find the records for about half of the 171 records (from an SQL statement that returns 171 records, no problem) and not for the other half of the records. For the ones it won't find I get a "Can't go to that record" error, and debugs as follows:[tt]
**************************************************
Private Sub ComboID_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.RecordsetClone
rs.FindFirst "[TenantID] = " & Str(Me![ComboID])
Me.Bookmark = rs.Bookmark
ComboID = ""
End Sub
**************************************************[/tt]
Ok, I removed Office XP, installed Office 2000, and all the update service packs.
Still have the problem. I thought it might be a difference in VBA between XP and 2000, because there seems to be two ways to say "Me.RecordsetClone"...that way and "Me.Recordset.Clone", with the dot...don't know which version uses which.
Any clues will be very much appreciated.
Glad to post any additional information you think might be helpful
![[glasses] [glasses] [glasses]](/data/assets/smilies/glasses.gif)