472,090 Members | 1,339 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,090 software developers and data experts.

How to handle subform (datasheet view) column header clicks


In VBA I populate an unbound subform (datasheet view) via a recordset that can be changed using filters selected by the user. The only problem I am having is that due to the unbound nature of the subform the sorting function activated by the column header click only works once, the second time the user tries a sort an error occurs ("Data provider could not be initialized").

Is there any way I could handle the column header click in code and resubmit a recordset based on which column they have clicked on? I can't seem to find an event for this where access knows that the header has been clicked.

Thanks in advance
May 6 '10 #1
0 1930

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Keith Wilby | last post: by
4 posts views Thread by MacDermott | last post: by
2 posts views Thread by Gas | last post: by
7 posts views Thread by Ken Mylar | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.