list down printers on a combo box

R

Rodolfo Fontes

Hi group,

I have a program made on VBA Access and i wanna list down all printers
avaible on windows( locals or on networks) on a combo box.
People has sugest me the following code, but it doesn't work.
#######
Dim Impressora As Printer

For Each Impressora In Printers
CMB_Printer.AddItem Impressora.DeviceName 'Printer.DeviceName
Next
#######

ERROR MESSAGE
"The type wasn't defineid by the user"

Any suggestion?


Thanks,
Rodolfo Fontes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top