RichardBott
MIS
Hi experts,
In Access XP, I show a list of 'candidates' that are the result of a query view of a table. The same form allows the user to add a new candidate to the view but when that is done, the list is not automatically refreshed to include the new candidate. Using the .Refresh only helps if I navigate off the newly added entry and then back which I do programmatically using DoCmd ... acNext then acPrevious. That approach works fine accept in the situation where the view is initially empty. In this case, when the DoCmd ... acNext is executed, an error occurs (because the record pointer is already pointing off the end of file). How can I programmatically determine that the current view is empty and thus, do something else? Does anyone have a better way of displaying the updated list?
Thanks in advance for any help you can bring.
Richard.
In Access XP, I show a list of 'candidates' that are the result of a query view of a table. The same form allows the user to add a new candidate to the view but when that is done, the list is not automatically refreshed to include the new candidate. Using the .Refresh only helps if I navigate off the newly added entry and then back which I do programmatically using DoCmd ... acNext then acPrevious. That approach works fine accept in the situation where the view is initially empty. In this case, when the DoCmd ... acNext is executed, an error occurs (because the record pointer is already pointing off the end of file). How can I programmatically determine that the current view is empty and thus, do something else? Does anyone have a better way of displaying the updated list?
Thanks in advance for any help you can bring.
Richard.