G
Guest
I'm trying to switch two group levels, ClassName and ItemDate, using VBA.
ClassName is grouplevel(0) and ItemDate is grouplevel(1). I want the user to
have the option to change ItemDate to grouplevel(0) and ClassName to
grouplevel(1). I tried changing the control source of each grouplevel to the
other group level, but because ClassName is text and ItemDate is Date/Time, I
receive an error whenever I switch to layout or print preview mode. I tried
using the GroupOn command to switch the field types, but because the GroupOn
command automatically assumes the field type, it doesn't work.
What is the most efficient way to switch the group levels in VBA?
ClassName is grouplevel(0) and ItemDate is grouplevel(1). I want the user to
have the option to change ItemDate to grouplevel(0) and ClassName to
grouplevel(1). I tried changing the control source of each grouplevel to the
other group level, but because ClassName is text and ItemDate is Date/Time, I
receive an error whenever I switch to layout or print preview mode. I tried
using the GroupOn command to switch the field types, but because the GroupOn
command automatically assumes the field type, it doesn't work.
What is the most efficient way to switch the group levels in VBA?