I have a query that returns:
LastName, FirstName, JRTRSTatus
the Status is: Alt, J1, J2, - J6.
I have 7 labels on my form named:
lblJuror1
lblJuror2...
lblJuror6
lblJurorAlt
I want the caption of each label to be the First & Last Name of the query
So I have the following:
So I get the number from the JMTRStatus field and append to the labelname so that juror 1 is in the caption of lblJuror1, juror 2 in lblJuror2, etc. Any way I can do this?
Thanks!
Leslie
landrews@metrocourt.state.nm.us
SELECT * FROM USERS WHERE CLUE > 0
No Rows Returned
LastName, FirstName, JRTRSTatus
the Status is: Alt, J1, J2, - J6.
I have 7 labels on my form named:
lblJuror1
lblJuror2...
lblJuror6
lblJurorAlt
I want the caption of each label to be the First & Last Name of the query
So I have the following:
Code:
While not JMSData.qryTemp.EOF do
if JMSdata.qryTemp.FieldByName('JMTRSTAT').AsString = 'Alt' then
frmTrialInfo.lblJurorAlt.Caption :=
ProperCase(JMSdata.qryTemp.FieldByName('FIRSTNAME').AsString) + ' ' +
ProperCase(JMSdata.qryTemp.FieldByName('LASTNAME').AsString)
else begin
i := Copy(JMSData.qryTemp.FieldByName('JMTRSTAT').AsString, 1, 2);
[COLOR=blue]frmTrialInfo.lblJuror + i.Caption :=
ProperCase(JMSdata.qryTemp.FieldByName('FIRSTNAME').AsString) + ' ' +
ProperCase(JMSdata.qryTemp.FieldByName('LASTNAME').AsString);[/color]
end;
So I get the number from the JMTRStatus field and append to the labelname so that juror 1 is in the caption of lblJuror1, juror 2 in lblJuror2, etc. Any way I can do this?
Thanks!
Leslie
landrews@metrocourt.state.nm.us
SELECT * FROM USERS WHERE CLUE > 0
No Rows Returned