A
Afrosheen via AccessMonster.com
First of all, thanks for reading this.
Here's my problem. I have 1 field called [sex] and another called [race]. At
one time the word sex was a text field Male or Female. I've changed the field
properties to either yes/no true false. Yes = Female and No = Male.
The code in the sql/query below is using the words Male or Female {list5}.
The [race] seems to be ok.
I need to change the sex part to either true or false even though on the
screen it will show Male/Female
SELECT qryEmpMaster.Lname, qryEmpMaster.Fname, qryEmpMaster.Sex, qryEmpMaster.
Race
FROM qryEmpMaster
WHERE 1=1 And IIf(Not isnull(Forms!frmGender!List5),qryEmpMaster.Sex=Forms!
frmGender!List5,1=1) And IIf(Not isnull(Forms!frmGender!combo7),qryEmpMaster.
Race=Forms!frmGender!combo7,1=1);
The list5 is a list box Male or Female. The combo7 is the race.
Thanks in advance for your help. I hope I've explained it correctly.
Here's my problem. I have 1 field called [sex] and another called [race]. At
one time the word sex was a text field Male or Female. I've changed the field
properties to either yes/no true false. Yes = Female and No = Male.
The code in the sql/query below is using the words Male or Female {list5}.
The [race] seems to be ok.
I need to change the sex part to either true or false even though on the
screen it will show Male/Female
SELECT qryEmpMaster.Lname, qryEmpMaster.Fname, qryEmpMaster.Sex, qryEmpMaster.
Race
FROM qryEmpMaster
WHERE 1=1 And IIf(Not isnull(Forms!frmGender!List5),qryEmpMaster.Sex=Forms!
frmGender!List5,1=1) And IIf(Not isnull(Forms!frmGender!combo7),qryEmpMaster.
Race=Forms!frmGender!combo7,1=1);
The list5 is a list box Male or Female. The combo7 is the race.
Thanks in advance for your help. I hope I've explained it correctly.