Problem subform in sheetview

T

TNL

Hi,
I have a subform (frmData) on a normal form (frmMain), this subform is
showed in sheet modus.
Normal, when I change format of the sheetview, such as the ordering of
columns (I drag a column to desired position), this form will know it and
the next time it will be shown as the last time.

But, when my program set the filter of the form, it will not show the
columns as last ordering. The code looks as following

dim sFilter as string
sFilter = ....
frmData.form.filter = sFilter
frmData.form.filterOn = true

Why? How can I do?

Thanks
TNL
 
A

Alicia

Changing the order of columns in the form view or query
view or table view can cause unexpected results. Always
change the order of the columns in design view, that way
it should always be the order that you choose.
 
T

TNL

The users change the order and they want, that my program can remember this
order.
As programmer we can not always know before, what the users want exactly. It
is good, that our program is enough flexible.

TNL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top