"Tran Hong Quang" <(E-Mail Removed)> wrote in
message news:0DDC990E-C7B3-4D9D-ACA2-(E-Mail Removed)
> This declaration raise error when compiling
>
> Dim prt As Access.Printer
>
> Which library do I have to add to "references..." ?
What version of Access are you using? The Printer object and Printers
collection were added with Access 2002. They didn't exist before that.
Notice that the KnowledgeBase article that Ofer pointed you to was for
Access 2002.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)