G
Guest
Hello,
I have a form with a button that when clicked will recreate the query (using
querydefs) that is the forms recordsource. I then attempt to requery the
form but the records do not change. If I manualy look at the query the
records have indeed changed. For instance, the query has 500 records. Once
I click the button and rerun the query it now has 10. However the form is
still showing 500 records. The only way I seem to get the form to show the
proper records is to close it and reopen. Any suggestions would be
appreciated?
On the buttons click event I put the following but it has no effect other
then creating the querydef sucessfully.
If CreateItemsQuery Then
Forms!frmDisplayItems.Requery
'me.requery
End If
THANK YOU.
I have a form with a button that when clicked will recreate the query (using
querydefs) that is the forms recordsource. I then attempt to requery the
form but the records do not change. If I manualy look at the query the
records have indeed changed. For instance, the query has 500 records. Once
I click the button and rerun the query it now has 10. However the form is
still showing 500 records. The only way I seem to get the form to show the
proper records is to close it and reopen. Any suggestions would be
appreciated?
On the buttons click event I put the following but it has no effect other
then creating the querydef sucessfully.
If CreateItemsQuery Then
Forms!frmDisplayItems.Requery
'me.requery
End If
THANK YOU.