473,406 Members | 2,620 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,406 software developers and data experts.

visible flag: datasheet versus form view



when I set visible=false, then entry is not visible in form view, but
still shows up in datasheet view. How do I make a field not to show
based on some condition in datasheet view?

Tx.

Nov 13 '05 #1
1 2815
On 28 Sep 2005 23:12:19 -0700, "sa****@gmail.com" <sa****@gmail.com> wrote:


when I set visible=false, then entry is not visible in form view, but
still shows up in datasheet view. How do I make a field not to show
based on some condition in datasheet view?

Tx.


Most things that can be done with controls in standard forms can be done with
controls in datasheet view as well, but not in the same way. In this case,
you'll use the ColumnHidden property of the control as opposed to the Visible
property. Also note that you can make a control accessible from expressions
and code, but invisible in Datasheet view by putting it in the form header or
footer.

To see what properties there are that you can use to manipulate datasheet
view, use the object browser (F2 from within the code editor) and skim the
Form object and the Textbox object properties for things that seem datasheet
related. Also note that you can control the color of columns in Access 2000
and newer by using conditional formatting. For a fixed color, just use an
Expression type condition with an expression of True.

Form:
DataSheetBackColor
DataSheetBorderLineStyle
DataSheetCellsEffect
DataSheetColumnHeaderUnderlineStyle
DataSheetFontHeight
DataSheetFontItalic
DataSheetFontName
DataSheetFontUnderline
DataSheetFontWeight
DataSheetForeColor
DataSheetGridlinesBehavior
DataSheetGridlinesColor
FrozenColumns
HorizontalDatasheetGridlineStyle
RowHeight
SubdatasheetExpanded
SubdatasheetHeight
VerticalDatasheetGridlineStyle

Textbox (and other control types):
ColumnHidden
ColumnOrder
ColumnWidth

Note that if you set ColumnOrder at runtime, make sure you set value first for
the column with the left-most target position first because columns to the
right of that position will be renumbered. If you do it in any other order,
the final result might or might not be what you expected.
Nov 13 '05 #2

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

Similar topics

3
by: Keith Wilby | last post by:
I have a form which allows both form and datasheet views. My question is, is it possible to control the field (column) names in datasheet view? What happens at the moment is that the name is...
3
by: Kent Eilers | last post by:
I want to follow naming conventions for my controls - i usually prefix combo boxes with "cbo". When a form is in datasheet view however i do not want the user to see the 'cbo' prefix in front of...
4
by: Terry | last post by:
I have created a Main Switchboard in Access 2000 and it has a button which opens a Form. I have set the form Properties Default View to Datasheet and this always opens in datasheet view. When I...
2
by: Georges Heinesch | last post by:
Hi: I have a tables in relationship to each other. When I open the main table (table 1), I see a "+" at the very left of every record. Clicking on the "+" expands the data of the linked table...
1
by: Yuki | last post by:
I am trying to find out if I can have a specific record that has been selected in a list box be opened in datasheet view. I can't seem to find where this can happen or what I need to use to make...
5
by: NTE | last post by:
Access 2000, My application has a main form that the users interact with. There are 2 hidden fields. When they select "filter by form" from the menu, the hidden fields become visble. Is...
5
by: Newbie | last post by:
I would like to display certain columns from a table on a form. One of my columns that I want to show is a Yes/No field so that my users can pick their players for a fantasy football week. If...
5
by: Bill | last post by:
This database has no forms. I am viewing an Access table in datasheet view. I'd like to execute a macro to execute a function (using "runcode"). In the function, I'll reading data from the record...
2
by: Alan Forsyth | last post by:
That rather long subject says it. In Access97 running on XP - I want to display a Maximized size Form01, then open a Restore size Datasheet View Form02 on top of the first Form. PopUp won't give...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.