M
Michelle
I have a Union Querry (code below) what it does is combine two tables one
with information already in it and the other empy one where you enter more
data.
What I want is to be able to use the Query when i creat a form however I
have a problem. I want to enter the IN_INMNUM and it then pull the
information from inmateinfo I don't want it to return all the information in
the inmateinfo table just the information for the IN_INMNUM that I enter.
SELECT
Inmtinfo.IN_INMNUM,
inmtinfo.IN_NAME,
inmtinfo.IN_RACE,
inmtinfo.IN_BLDING,
inmtinfo.IN_SECTION,
inmtinfo.IN_CELLDRM,
inmtinfo.IN_BEDNUM,
tblCellChange.M_BLDING,
tblCellChange.M_SECTION,
tblCellChange.M_CELLDRM,
tblCellChange.M_BEDNUM,
tblCellChange.M_REG,
tblCellChange.M_EMG,
tblCellChange.M_REASON,
tblCellChange.M_DATE
FROM inmtinfo LEFT JOIN tblCellChange ON
inmtinfo.IN_INMNUM=tblCellChange.IN_INMNUM;
with information already in it and the other empy one where you enter more
data.
What I want is to be able to use the Query when i creat a form however I
have a problem. I want to enter the IN_INMNUM and it then pull the
information from inmateinfo I don't want it to return all the information in
the inmateinfo table just the information for the IN_INMNUM that I enter.
SELECT
Inmtinfo.IN_INMNUM,
inmtinfo.IN_NAME,
inmtinfo.IN_RACE,
inmtinfo.IN_BLDING,
inmtinfo.IN_SECTION,
inmtinfo.IN_CELLDRM,
inmtinfo.IN_BEDNUM,
tblCellChange.M_BLDING,
tblCellChange.M_SECTION,
tblCellChange.M_CELLDRM,
tblCellChange.M_BEDNUM,
tblCellChange.M_REG,
tblCellChange.M_EMG,
tblCellChange.M_REASON,
tblCellChange.M_DATE
FROM inmtinfo LEFT JOIN tblCellChange ON
inmtinfo.IN_INMNUM=tblCellChange.IN_INMNUM;