RunTime Error 5

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
 
D

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
 
D

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
 
Top