Hi,
I use a GroupLevel to change the Sort of the report because some report need different sort and i don't want to make duplication of this report
Here my code:
DoCmd.OpenReport strRptName, acDesign
Reports(strRptName).GroupLevel(0).ControlSource = "ID_NO"
Reports(strRptName).GroupLevel(0).SortOrder = 0
Etc..
DoCmd.OpenReport strRptName, acPreview
But when a preview this report when a close the report the system always ask me to save the modification. It is possible to remove this message ? I know the command is working fine when i send to printer:
DoCmd.OpenReport strRptName, acNormal
DoCmd.Close acReport, strRptName, acSaveNo
It is possible to remove temporaly the saving message box in the via options or api windows ?
Thanks for your help,
Eric
I use a GroupLevel to change the Sort of the report because some report need different sort and i don't want to make duplication of this report
Here my code:
DoCmd.OpenReport strRptName, acDesign
Reports(strRptName).GroupLevel(0).ControlSource = "ID_NO"
Reports(strRptName).GroupLevel(0).SortOrder = 0
Etc..
DoCmd.OpenReport strRptName, acPreview
But when a preview this report when a close the report the system always ask me to save the modification. It is possible to remove this message ? I know the command is working fine when i send to printer:
DoCmd.OpenReport strRptName, acNormal
DoCmd.Close acReport, strRptName, acSaveNo
It is possible to remove temporaly the saving message box in the via options or api windows ?
Thanks for your help,
Eric