'=============================
DoCmd.OpenReport "仓库进销存", acPreview, "", ""
For i = 1 To inTaa Step aa
'inTaa总局变量可用:Reports!报表名!控件名 (控件值=[Pages])
'aa为要指定的奇偶数变量,在打印前选取
'For i = 1 To inTaa Step 2 为奇数页打印
'For i = 2 To inTaa Step 2 为偶数页打印
DoCmd.PrintOut acPages, i, i, , 1
Debug.Print "i="; i
Next