Re-initializing forms

hbrems

has no clue...
Local time
Today, 12:28
Joined
Nov 2, 2006
Messages
181
Hello,

I have created a pop up window where I can select which columns are hidden on a datasheet on my main form.

This pop up window will write the selected settings to a table when closed.

I would also like that the main form re-initializes so that the changes are visible instantly.

When I close the form and re-open it the changes are visible but I would like a more straightforward approach.

Any ideas?

Kind regards,
Hans B.
 
Maybe try the repaint method of the form

forms!frmName.form.repaint
 
Nope, it ain't working. Columns are still visible...
 
do yu have code on the opne event to hide the columns?
 
if you are using a datasheet view, i think you will still see notionally hidden columns

you probably need to use a continuous form view to hide fields.
 
do yu have code on the opne event to hide the columns?

Yes I do. In the attachement a screenshot of how it looks. Please note I want to keep the main window opened.
 

Attachments

  • showhide.JPG
    showhide.JPG
    50.4 KB · Views: 127
This is because you are using datasheet view. If you use form view it will be refreshed immideately. In datasheet view, you should try the columnwidth property by assigning 0. On the other hand, then you have to know the column widths or just assign any width to that column.

HTS
Olcaym
 

Users who are viewing this thread

Back
Top Bottom