Datasheet column widths

G

Guest

Is there a way to prevent the user from modifying the width of columns in
datasheet view. For example, I have a form and I do not want the user to be
able to resize the columns on the form so that it will fit nicely on the
screen.

Thanks!
 
G

Guest

I do not know how to lock widths but you could create an Event or Macro to
set widths when they exit the form.
 
S

Stephen Lebans

For programmatic control for forms in Datasheet view my standard
response is:


1) Michael Kaplan has an excellent article on manipulating Datasheets
here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmart
01/html/sa01b1.asp

2) An API solution is here:
http://www.lebans.com/autocolumnwidth.htm
The AutoSizing project also contains a method to FREEZE the
ColumnWidths.
--

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