MasterRacker
New member
I have a form bound to a Products table. On the form I have an unbound lookup combo that uses the following wizard code to select a product
If I create a new product, it does not show in the combo until I "F5" to refresh the form. If I'm using the built-in record navigator controls to create a new record, what's the event I'm looking for to do a requery on the combobox?
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
Code:
Private Sub ProductLookup_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ProductID] = " & Str(Nz(Me![ProductLookup], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
If I create a new product, it does not show in the combo until I "F5" to refresh the form. If I'm using the built-in record navigator controls to create a new record, what's the event I'm looking for to do a requery on the combobox?
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]