Guest_imported
New member
- Jan 1, 1970
- 0
When trying to use the ActiveDocument.PrintOut command in
an Access event procedure when a command button is clicked
I am getting an "13 Type Mismatch". I am trying to pass variables to the PrintOut command for From and To pages.
Both are defined as Long variables. Syntax being used
is:
objWord.ActiveDocument.Printout Background:=False,
Append:=False, Range:="3", OutPutFileName:="",
From:=FromPg, To:=ToPg
The Word document opens fine.
an Access event procedure when a command button is clicked
I am getting an "13 Type Mismatch". I am trying to pass variables to the PrintOut command for From and To pages.
Both are defined as Long variables. Syntax being used
is:
objWord.ActiveDocument.Printout Background:=False,
Append:=False, Range:="3", OutPutFileName:="",
From:=FromPg, To:=ToPg
The Word document opens fine.