473,396 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Lock out width/height adjust

If possible, how can the user be prevented from adjusting the column width
and/or the row height in datasheet view (in VB code if necessary)? (I still
want them to be able edit the contents of the field though). I've got a
subform set up the way I like in datasheet view and I don't want to allow
the user to adjust either parameter.

Along the same lines, is it possible to eliminate the appearance of the
little drop down arrow next to the field headings that allows the drop down
menu for sorting/filtering?

Thanks,

Gord
Nov 8 '08 #1
3 6188
i'm wondering if you're using A2007, if so my comments may not apply. if an
earlier version of Access, you can prevent the shortcut menu from showing by
opening the subform to Design view from the database window, where it is
listed as a separate form, and setting the ShortcutMenu property to No.

as for the subform datasheet columns, suggest you limit the user's closure
of the mainform to a command button that closes the form without saving
changes, as

DoCmd.Close , , acSaveNo

so the user can resize the subform columns, etc, at will, but the changes
will not be saved; so the next time the form is opened, your default setup
will apply. so presumably you're happy, and probably the user is a lot
happier, too.

hth
"Gord" <x1******@telus.netwrote in message
news:LSmRk.1203$A73.1184@edtnps82...
If possible, how can the user be prevented from adjusting the column width
and/or the row height in datasheet view (in VB code if necessary)? (I
still
want them to be able edit the contents of the field though). I've got a
subform set up the way I like in datasheet view and I don't want to allow
the user to adjust either parameter.

Along the same lines, is it possible to eliminate the appearance of the
little drop down arrow next to the field headings that allows the drop
down
menu for sorting/filtering?

Thanks,

Gord


Nov 9 '08 #2
Thanks Tina.

I am using A2007, but your suggestion for the ShortcutMenu property worked
just fine.

However, the 'SaveNo' option doesn't seem to have any effect. I've got a
command button on the main form that has the DoCmd.Close command that closes
the main form along with two subforms. I've tried variations (i.e. using a
DoCmd.Close for each of the subforms as well as the main form) and none
seems to make any difference. When the form/subforms open up, the column
widths are what I had left them at when last closed.

Anyway, its a small tweak that I was trying to apply and it's not that
important so I don't think I'll spend too much time trying to get to work
this way. I was just hoping there was some simple property setting like for
the ShortcutMenu that could be set.

Thanks again.

Gord
"tina" <no****@address.comwrote in message
news:oz********************@bgtnsc04-news.ops.worldnet.att.net...
i'm wondering if you're using A2007, if so my comments may not apply. if
an
earlier version of Access, you can prevent the shortcut menu from showing
by
opening the subform to Design view from the database window, where it is
listed as a separate form, and setting the ShortcutMenu property to No.

as for the subform datasheet columns, suggest you limit the user's closure
of the mainform to a command button that closes the form without saving
changes, as

DoCmd.Close , , acSaveNo

so the user can resize the subform columns, etc, at will, but the changes
will not be saved; so the next time the form is opened, your default setup
will apply. so presumably you're happy, and probably the user is a lot
happier, too.

hth
"Gord" <x1******@telus.netwrote in message
news:LSmRk.1203$A73.1184@edtnps82...
>If possible, how can the user be prevented from adjusting the column
width
and/or the row height in datasheet view (in VB code if necessary)? (I
still
>want them to be able edit the contents of the field though). I've got a
subform set up the way I like in datasheet view and I don't want to allow
the user to adjust either parameter.

Along the same lines, is it possible to eliminate the appearance of the
little drop down arrow next to the field headings that allows the drop
down
>menu for sorting/filtering?

Thanks,

Gord



Nov 9 '08 #3
hmm, well, you're welcome - i'm glad one suggestion was useful, anyway. as
for the subform Datasheet column widths, i haven't encountered that problem.
on the other hand, i've been developing almost exclusively in A97 for the
past 2+ years; maybe it's an issue in later versions of Access, and i've
just forgotten.
"Gord" <x1******@telus.netwrote in message
news:Q8JRk.1418$A73.1384@edtnps82...
Thanks Tina.

I am using A2007, but your suggestion for the ShortcutMenu property worked
just fine.

However, the 'SaveNo' option doesn't seem to have any effect. I've got a
command button on the main form that has the DoCmd.Close command that
closes
the main form along with two subforms. I've tried variations (i.e. using
a
DoCmd.Close for each of the subforms as well as the main form) and none
seems to make any difference. When the form/subforms open up, the column
widths are what I had left them at when last closed.

Anyway, its a small tweak that I was trying to apply and it's not that
important so I don't think I'll spend too much time trying to get to work
this way. I was just hoping there was some simple property setting like
for
the ShortcutMenu that could be set.

Thanks again.

Gord
"tina" <no****@address.comwrote in message
news:oz********************@bgtnsc04-news.ops.worldnet.att.net...
i'm wondering if you're using A2007, if so my comments may not apply. if
an
earlier version of Access, you can prevent the shortcut menu from
showing
by
opening the subform to Design view from the database window, where it is
listed as a separate form, and setting the ShortcutMenu property to No.

as for the subform datasheet columns, suggest you limit the user's
closure
of the mainform to a command button that closes the form without saving
changes, as

DoCmd.Close , , acSaveNo

so the user can resize the subform columns, etc, at will, but the
changes
will not be saved; so the next time the form is opened, your default
setup
will apply. so presumably you're happy, and probably the user is a lot
happier, too.

hth
"Gord" <x1******@telus.netwrote in message
news:LSmRk.1203$A73.1184@edtnps82...
If possible, how can the user be prevented from adjusting the column
width
and/or the row height in datasheet view (in VB code if necessary)? (I
still
want them to be able edit the contents of the field though). I've got
a
subform set up the way I like in datasheet view and I don't want to
allow
the user to adjust either parameter.

Along the same lines, is it possible to eliminate the appearance of the
little drop down arrow next to the field headings that allows the drop
down
menu for sorting/filtering?

Thanks,

Gord



Nov 10 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: delerious | last post by:
I need to determine an element's width and height in pixels (not including padding, border, and margin) in Javascript. The element will not have width or height styles specified. In Mozilla, I...
9
by: Wladimir Borsov | last post by:
As well known for <IMG ...> tags in web pages a width and a height attribute can be applied. What I want to do now is to fix the width for ALL the images on my web page to exactly lets say 70 pixel...
25
by: Sune A | last post by:
Hi All! I'm having problems with www.suneworld.com The thing is that I'd like to lock the width of the page, so that it won't adjust dynamically. Any CSS people out there that can help me? ...
6
by: Hacking Bear | last post by:
Hi, I still don't quite fully understand how to handle mixing border/margin pixel width with percentage width. In the example below, I want to place side-by-side two DIV boxes inside a box....
5
by: Pugi! | last post by:
I am making a site with lot of AJAX components. When I present a form (in a layer on top of contents of page) I want to make sure that the user cannot click on a link or button other then on the...
1
by: snowbunny | last post by:
Hi, I'm having a problem with releasing a file lock after a save. My code takes an image file uploaded via a form, and saves it to disk. That's fine, but I'm trying to add a new function which...
1
by: rynato | last post by:
I have a <spanof width X px and height Y px. I want to read the text of an article, which is stored in a mySQL table, and pass to that <spanonly just enough text to fit in it, along with a 'read...
2
by: ATR2000 | last post by:
I have setup a Panel to have a width of 100% so that it will adjust to users screensize. Within the panel I have a table. Unfortunately the table holds a lot of data and exceeds the size of the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.