G
Guest
I have read through all of the posts that I can find and so far I can't get
the results I am looking for. I have a form that has some list boxes that
are pulling information from a query (filtered by other controls on the form)
and automatically displaying it on the form. The problem is, when I go to a
new record the information is left in the auto-display list boxes from the
previous record. I can refresh the data with a button, would would like to
refresh it with an event procedure AfterUpdate. I have tried the following:
Me. Requery
When I run a Me.Requery on AfterUpdate I end up back on the first
record (and it appears to be a New Record) as soon as I tab out of the
entered criteria for the list box queries (which is not the last control on
the form, so I should not be going to a new record at this time). I need to
stay on the active record to complete the data entry. I can navigate back to
that record, which is the last record, but ~alas~ the previous data remains
in the list boxes.
Me.Refresh
When I have this as an event procedure on AfterUpdate, it doesn't seem
to do anything. When I go to a new record, the data is still there from the
last record in the list boxes.
So, I guess my questions are as follows:
1) Where/how can I empty the contents of the list boxes of the residual data?
2) Where/how can I run the Requery event to re-dislpay the needed
information (not the residual information) when going back to a previous
record?
the results I am looking for. I have a form that has some list boxes that
are pulling information from a query (filtered by other controls on the form)
and automatically displaying it on the form. The problem is, when I go to a
new record the information is left in the auto-display list boxes from the
previous record. I can refresh the data with a button, would would like to
refresh it with an event procedure AfterUpdate. I have tried the following:
Me. Requery
When I run a Me.Requery on AfterUpdate I end up back on the first
record (and it appears to be a New Record) as soon as I tab out of the
entered criteria for the list box queries (which is not the last control on
the form, so I should not be going to a new record at this time). I need to
stay on the active record to complete the data entry. I can navigate back to
that record, which is the last record, but ~alas~ the previous data remains
in the list boxes.
Me.Refresh
When I have this as an event procedure on AfterUpdate, it doesn't seem
to do anything. When I go to a new record, the data is still there from the
last record in the list boxes.
So, I guess my questions are as follows:
1) Where/how can I empty the contents of the list boxes of the residual data?
2) Where/how can I run the Requery event to re-dislpay the needed
information (not the residual information) when going back to a previous
record?