I need help please!
We are using a simple Access DB to track user accounts. On our form, we have a combobox with a query as its row source. It is a combination of lastname & firstname linked to a unique PersonCompID. When we add a new user, the data in the combobox does not refresh. We have to close the DB, & reopen so the data (lastname, firstname) will appear. One website recommended using .requery, so I tried adding Me.RecordsetClone.Requery in OnClick & AfterUpdate. These did not work.
Any help is appreciated. (My code is listed below.)
Jeremy
Sub Combo43_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[PersonCompID] = " & Me![Combo43]
Me.Bookmark = Me.RecordsetClone.Bookmark
Combo43.Value = ""
End Sub
We are using a simple Access DB to track user accounts. On our form, we have a combobox with a query as its row source. It is a combination of lastname & firstname linked to a unique PersonCompID. When we add a new user, the data in the combobox does not refresh. We have to close the DB, & reopen so the data (lastname, firstname) will appear. One website recommended using .requery, so I tried adding Me.RecordsetClone.Requery in OnClick & AfterUpdate. These did not work.
Any help is appreciated. (My code is listed below.)
Jeremy
Sub Combo43_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[PersonCompID] = " & Me![Combo43]
Me.Bookmark = Me.RecordsetClone.Bookmark
Combo43.Value = ""
End Sub