ColumnWidth Property Combo Box

M

Marilyn

I am trying to set the ColumnWidth property via VBA. This
is the statement that I've used:

Me.cboEmpid.ColumnWidth = ".5 in;1 in;1 in"

Error Message is: Type mismatched.

What is theproper syntax.

Thank you for your help.
 
G

Gerald Stanley

Try
Me.cboEmpid.ColumnWidths = ".5 in;1 in;1 in"

Hope This Helps
Gerald Stanley MCSD
 
C

Cranky

..5", 1", 1

You can always use a wizard to build one and then look at the properties you need


----- Marilyn wrote: ----

I am trying to set the ColumnWidth property via VBA. This
is the statement that I've used:

Me.cboEmpid.ColumnWidth = ".5 in;1 in;1 in

Error Message is: Type mismatched

What is theproper syntax

Thank you for your help
 
S

Stephen Lebans

At runtime the units must be expressed as TWIPS(1440 TWIPS PER INCH).
:)

--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

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