Link to home
Create AccountLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Access VBA show/hide columns in sub form

Hi

I have an Access form in which I want to put a sub form. I want to show the data in the same format as the table and be able to hide or show certain columns using Access VBA code. The reason for this is that I have to show the sub form on several tabs where different columns are exposed on each tab.

Thanks
SOLUTION
Avatar of Daniel Pineault
Daniel Pineault

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Murray Brown

ASKER

HI Daniel. There are over 60 columns so wanted to look at the programmatic approach. What you have suggested is most likely the best approach
Avatar of Daniel Pineault
Daniel Pineault

Datasheet view?
I would go with Continuous forms and hide accordingly.
But i am not quite sure what you are after...how about a screenshot
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Thanks for the advice.