A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Datasheet Column Widths



 
 
Thread Tools Display Modes
  #1  
Old November 21st, 2009, 06:17 PM posted to microsoft.public.access.forms
Confused Slug
external usenet poster
 
Posts: 21
Default Datasheet Column Widths

Is it possible to prevent the column widths on a subform, in datasheet view,
from being changed or to prevent any changes from being saved? The data in
the cells would still need to be available for modification.

????? me.datasheetcolumnwidth.enabled = false ?????

Thanks
  #2  
Old November 21st, 2009, 07:15 PM posted to microsoft.public.access.forms
Mark Andrews[_2_]
external usenet poster
 
Posts: 600
Default Datasheet Column Widths

To stop changes from being saved:
You can force the form to not save changes when using docmd.close (see the
arguments for this action) or
you can use the access runtime where form changes will never be saved.

To stop changes from being allowed to happen I found this article:
http://www.dbforums.com/microsoft-ac...heet-view.html

HTH,
Mark Andrews
RPT Software
http://www.rptsoftware.com


"Confused Slug" wrote in message
...
Is it possible to prevent the column widths on a subform, in datasheet
view,
from being changed or to prevent any changes from being saved? The data in
the cells would still need to be available for modification.

????? me.datasheetcolumnwidth.enabled = false ?????

Thanks



  #3  
Old November 21st, 2009, 07:37 PM posted to microsoft.public.access.forms
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Datasheet Column Widths

If it's possible, it'll likely be mentioned in MichKa's "You Can Do That
with Datasheets?" at
http://msdn.microsoft.com/en-us/libr...ffice.11).aspx

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Confused Slug" wrote in message
...
Is it possible to prevent the column widths on a subform, in datasheet
view,
from being changed or to prevent any changes from being saved? The data in
the cells would still need to be available for modification.

????? me.datasheetcolumnwidth.enabled = false ?????

Thanks



  #4  
Old November 21st, 2009, 10:12 PM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 2,529
Default Datasheet Column Widths

"Confused Slug" wrote in message
...
Is it possible to prevent the column widths on a subform, in datasheet
view,
from being changed or to prevent any changes from being saved? The data in
the cells would still need to be available for modification.



In addition to what has already posted, there's Stephen Lebans'
AutoColumnWidth database, which contains a class module to freeze column
widths.

http://www.lebans.com/autocolumnwidth.htm

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

  #5  
Old November 21st, 2009, 10:51 PM posted to microsoft.public.access.forms
David W. Fenton
external usenet poster
 
Posts: 3,373
Default Datasheet Column Widths

"Douglas J. Steele" wrote in
:

If it's possible, it'll likely be mentioned in MichKa's "You Can
Do That with Datasheets?" at
http://msdn.microsoft.com/en-us/libr...ffice.11).aspx


Indeed, that article discusses the very issue.

The interesting thing to me is that he doesn't talk about using the
events of the datasheet, which are just as powerful as for any form.
Certainly, there's nothing really different about datasheet events,
but I'm surprised he didn't mention it. The realization that a
datasheet was a form came to me only in the last couple of months
while working in the object browser -- as Michael mentions in the
article, if you look there you'll see that a datasheet is an object
of type FORM.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.