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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Expression help



 
 
Thread Tools Display Modes
  #1  
Old July 15th, 2007, 04:11 PM posted to microsoft.public.access.reports
bohon79 via AccessMonster.com
external usenet poster
 
Posts: 8
Default Expression help

Have a query that has my units mtoe that is used for usr. now I have a column
(Sex) that when I put a soldier in the authorized spot that comes from my
units data either puts in a f for female or m for male. Is there a expression
that I can but in another column that buts a number 1 in the column if the
soldier is female or a number 0 in the column if the soldier is a Male.

Any help with this.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200707/1

  #2  
Old July 15th, 2007, 07:42 PM posted to microsoft.public.access.reports
tina
external usenet poster
 
Posts: 1,997
Default Expression help

your post was a bit confusing, but if i understood correctly: you have a
query which includes a field (Sex) that contains either an "f" or an "m",
for each record. you want to create a calculated field in the query to
display a value of 0 or 1 based on the value in the Sex field.

if the above is correct, use the following expression for your calculated
field, as

GenderNum: Abs([Sex]="f")

hth


"bohon79 via AccessMonster.com" u35329@uwe wrote in message
news:7536ca200c4a2@uwe...
Have a query that has my units mtoe that is used for usr. now I have a

column
(Sex) that when I put a soldier in the authorized spot that comes from my
units data either puts in a f for female or m for male. Is there a

expression
that I can but in another column that buts a number 1 in the column if the
soldier is female or a number 0 in the column if the soldier is a Male.

Any help with this.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200707/1



 




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