Hi Pat, thanx for the reply, but that's not quite what we meant.
Basically we have a form and subform. The subform is in datasheet view. We have 2 columns in the datasheet that we want to be hidden and inaccessible until a particular button is clicked on the main form.
It looks fine doing this with the columnHidden set to true or false depending on the clicked button, but since all columnHidden does is reduce the column's width to 0 it is possible for the users to resize the hidden column and make them completely viewable.
We need some way of making these two columns hidden most of the time, but we do need them at other points.
So far I've looked at using two separate subfoms (one containing the two fields, and one without them) and then switching from one to the other, and this does work, but I don't like the time-lag while the subform is switching and it just seems bit messy to me; it might however be the only way of doing what I want, in which case I'll have to play around with it more.
I did think about using the forms record-source to include or exclude the two columns that I wanted displayed, but for a form in datasheet view only the controls that are actually on the form are displayed in columns.
Any other thoughts on a possible solution to this problem?