G
Guest
Hi,
I'm having a data glitch with my Listbox and forms.
I have a main form that contains a Listbox and record information. When the
user selects to create a new record, because of what they need to do, I open
another form for adding. This pop form is closed when the user saves the new
record. I have a Requery in my main form to requery my listbox. The new
record appears in this list box, but when I go to select it, it won't load
it into my form. If I exit the form, re-enter, and select that new record,
it will load it into my form.
Here is the AfterUpdate code for my List64 Box on my main form:
' Find the record that matches the control.
Dim RS As Object
Set RS = Me.Recordset.Clone
RS.FindFirst "[CoverID] = " & Str(Nz(Me![List64], 0))
If Not RS.EOF Then Me.Bookmark = RS.Bookmark
Me!Compound.SetFocus
Here is my line in my Form_Activate for my main form:
Me![List64].Requery
What am I doing wrong?
I'm having a data glitch with my Listbox and forms.
I have a main form that contains a Listbox and record information. When the
user selects to create a new record, because of what they need to do, I open
another form for adding. This pop form is closed when the user saves the new
record. I have a Requery in my main form to requery my listbox. The new
record appears in this list box, but when I go to select it, it won't load
it into my form. If I exit the form, re-enter, and select that new record,
it will load it into my form.
Here is the AfterUpdate code for my List64 Box on my main form:
' Find the record that matches the control.
Dim RS As Object
Set RS = Me.Recordset.Clone
RS.FindFirst "[CoverID] = " & Str(Nz(Me![List64], 0))
If Not RS.EOF Then Me.Bookmark = RS.Bookmark
Me!Compound.SetFocus
Here is my line in my Form_Activate for my main form:
Me![List64].Requery
What am I doing wrong?