469,159 Members | 1,511 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,159 developers. It's quick & easy.

How to handle subform (datasheet view) column header clicks

Hi

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 1846

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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.