RunTime Error 5

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

I'm getting a Run-Time Error 5 on this code...I didn't use to...
Invald Procedjure call or argument..

Set Application.Printer =
Application.Printers.Item(Me.TxtMaxPrintNumber.Value)

Any help Appreciated.
Thanks
DS
 
DS said:
I'm getting a Run-Time Error 5 on this code...I didn't use to...
Invald Procedjure call or argument..

Set Application.Printer =
Application.Printers.Item(Me.TxtMaxPrintNumber.Value)

Any help Appreciated.
Thanks
DS
Ok this is weird. The code works on a new form I built but not on the
old one, I did some name changes to the old one that it's not working
on, could something be stuck in memory?
DS
 
DS said:
Ok this is weird. The code works on a new form I built but not on the
old one, I did some name changes to the old one that it's not working
on, could something be stuck in memory?
DS
Ok I think that it's the value I'm getting. It's preceeded by this...
Me.TxtMax = Nz(DMax("PDPrinterID",tblPrintDetails",
"PDCheckID = " & Me.CheckID & ""),0)

Set Application.Printer = Set Application.Printers((Me.TxtMax.Value))

Thanks
DS
 

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

Similar Threads


Back
Top