forms

S

socka

how would i go about altering the width and height of a form dynamically using code??
 
P

Peter Kaufman

This should get you going, but there are issues about what measurement
to use. The help system says it will be cm or inches, but when I
tried it, it looks like twips (1440 twips = 1 inch)


Function fnSize()
On Error GoTo procError
Dim Myform As Form
DoCmd.OpenForm "frmCritSalesDate", acDesign
Set Myform = Forms("frmCritSalesDate")
Myform.Width = 8000
DoCmd.Close acForm, Myform.Name, acSaveYes

procExit::
Set Myform = Nothing
Exit Function

procError:
MsgBox Err.Description
End Function

Peter
 

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

Top