DeviceName Property [Access 2003 VBA Language Reference]
Returns a String indicating name of the specified printer device. Read-only.
expression.DeviceName
expression Required. An expression that returns one of the objects in the Applies To list.
Example
The following example displays information about all the printers available to the system.
Dim prtLoop As Printer
For Each prtLoop In Application.Printers
With prtLoop
MsgBox "Device name: " & .DeviceName & vbCr _
& "Driver name: " & .DriverName & vbCr _
& "Port: " & .Port
End With
Next prtLoop
Applies to | Printer Object
See Also | DriverName Property | Port Property