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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how do I hide the no answers in a yes/no field



 
 
Thread Tools Display Modes
  #1  
Old April 18th, 2008, 12:26 AM posted to microsoft.public.access.gettingstarted
kthomps
external usenet poster
 
Posts: 1
Default how do I hide the no answers in a yes/no field

I need to hide the no answers in a Access table - how do I do that?
  #2  
Old April 18th, 2008, 12:55 AM posted to microsoft.public.access.gettingstarted
Rick Brandt
external usenet poster
 
Posts: 4,354
Default how do I hide the no answers in a yes/no field

kthomps wrote:
I need to hide the no answers in a Access table - how do I do that?


Normally you would not. Tables are about storage, not presentation.

Use a form or report bound to a query of your table and use criteria in the
query to filter out the NO records.

SELECT *
FROM TableName
WHERE FieldName 0

False or No is actually stored as the number zero.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #3  
Old April 23rd, 2008, 12:02 PM posted to microsoft.public.access.gettingstarted
Evi
external usenet poster
 
Posts: 898
Default how do I hide the no answers in a yes/no field

You won't be hiding them in your table. You can hide them in your form or
report. No-one has any business looking at your tables!

You haven't given your field name (you may find it easier to follow
instructions if you do this in future posts)

In your query, on which your form is based, you could add this to the query

OnlyYes: IIF([YourYesNoField]=False, "", "Yes")

In your report, you will use code in the On Format Event of the section
containing the control

The code will look like this

If Me.[YourYesNoField]=False Then
Me.[YourYesNoField].Visible = False
Else
Me.[YourYesNoField].Visible = True
End If

Evi




"kthomps" wrote in message
...
I need to hide the no answers in a Access table - how do I do that?



 




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 04:04 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.