Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 912 Bytes

Access.Printer.DeviceName.md

File metadata and controls

46 lines (29 loc) · 912 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Printer.DeviceName property (Access)
vbaac10.chm12859
vbaac10.chm12859
Access.Printer.DeviceName
bf4acead-26b9-603d-2ead-537822913405
03/23/2019
medium

Printer.DeviceName property (Access)

Returns a String indicating the name of the specified printer device. Read-only.

Syntax

expression.DeviceName

expression A variable that represents a Printer object.

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 
 

[!includeSupport and feedback]