A
AndyB
I have an open table and I want to freeze two columns once it is open. I
have for the time being created a custom toolbar that opens for the user to
do this without looking for the menu item. However I would much rather have
the columns frozen already. I have tried the following code:
DoCmd.OpenTable "28DayPeriod", acNormal, acEdit
me![FirstName].setfocus
DoCmd.RunCommand acCmdFreezeColumn
Me![lastname].setfocus
DoCmd.RunCommand acCmdFreezeColumn
It does not work it can't find the fields Firstname and Lastname.
I have the table open in the datasheet view.
If I get ride of the two setfocus lines then just the first column is
frozen.
Any help
Andy B
have for the time being created a custom toolbar that opens for the user to
do this without looking for the menu item. However I would much rather have
the columns frozen already. I have tried the following code:
DoCmd.OpenTable "28DayPeriod", acNormal, acEdit
me![FirstName].setfocus
DoCmd.RunCommand acCmdFreezeColumn
Me![lastname].setfocus
DoCmd.RunCommand acCmdFreezeColumn
It does not work it can't find the fields Firstname and Lastname.
I have the table open in the datasheet view.
If I get ride of the two setfocus lines then just the first column is
frozen.
Any help
Andy B