Hi, Thanks for your response,
It's a bit complicated but I'll try to explain. The Access file is on a shared network which is used by multible users. Every time the user runs the file it creates a local copy on there PC from the "master" on the network drive. This allows updates of the file to be issued automatically every time the user opens the file. The downside is, and here lies the problem I think, is the the printer settings are saved with the developers PC which do not corresponed with the other network PC's which means each user has to reset some printer settings manually everytime they open the file. Hope this makes sense
[FONT=Courier New]Do you have:[/FONT]
[FONT=Courier New] o [B]One file that is shared by multiple users?[/B][/FONT]
[FONT=Courier New] [COLOR=green][B]Split the database into an FE/BE structure, and place[/B][/COLOR] [/FONT]
[FONT=Courier New] [COLOR=green][B]a copy of the Front End on each User's WorkStation.[/B][/COLOR][/FONT]
[FONT=Courier New] o [B]A single front end that overwrites the one currently[/B] [/FONT]
[FONT=Courier New] [B]on the user's desktop each time it is run?[/B][/FONT]
[FONT=Courier New] [COLOR=green][B]Search the Forum for instructions for using one of[/B][/COLOR] [/FONT]
[FONT=Courier New] [B][COLOR=green]the Front End Auto Updateing Procedures that are[/COLOR][/B][/FONT]
[FONT=Courier New] [COLOR=green][B]available. That way the users will only update their[/B][/COLOR] [/FONT]
[FONT=Courier New] [B][COLOR=green]version if the Front End has changed.[/COLOR][/B][/FONT]
MSAccessRookie - sounds like the OP already has this in place.
their issue seems to be that when the FE is overwritten on auto-update, the printer settings the user had are also overwritten.
i don't know if an extra "preferences" or "settings" backend that is kept locally would fix the issue, but it's an idea.
Access Developer Reference Printer.PaperSize Property
Returns or sets an AcPrintPaperSize constant indicating the paper size to use when printing. Read/write. Syntax
expression.PaperSize
expression A variable that represents a Printer object.
Example
The following example sets a variety of printer settings for the form specified in the strFormname argument of the procedure.
Visual Basic for Applications Sub SetPrinter(strFormname As String)
DoCmd.OpenForm FormName:=strFormname, view:=acDesign, _
datamode:=acFormEdit, windowmode:=acHidden
With Forms(form1).Printer
.TopMargin = 1440
.BottomMargin = 1440
.LeftMargin = 1440
.RightMargin = 1440
.ColumnSpacing = 360
.RowSpacing = 360
.ColorMode = acPRCMColor
.DataOnly = False
.DefaultSize = False
.ItemSizeHeight = 2880
.ItemSizeWidth = 2880
.ItemLayout = acPRVerticalColumnLayout
.ItemsAcross = 6
.Copies = 1
.Orientation = acPRORLandscape
.Duplex = acPRDPVertical
.PaperBin = acPRBNAuto
.PaperSize = acPRPSLetter
.PrintQuality = acPRPQMedium
End With
DoCmd.Close objecttype:=acForm, objectname:=strFormname, _
Save:=acSaveYes
End Sub