G
Guest
Hello,
I have a form with a text box. I want the value of the text box to display
the names of certain judges. I have a select statement as follows:
Set rs = CurrentDb.OpenRecordset( _
"SELECT JudgeID from tblChosenJustices WHERE CaseName = " &
Form_frmAllData.CaseName _
& "AND JudgeValue=" & varJudgeValue)
This part seems to work fine. Each judge is assigned a certain numeric
value and I now want to compare this value to the value (JusticeID) in
another table which is simply a 2 field list of judge names and judge values,
for instance Ruth Bader Ginsberg (JusticeName)=18(JusticeID). I want the
justice's name to show in the text box, so I did the following:
MySQL = ("SELECT JusticeName FROM tblJusticenames WHERE" &
rs.Fields("JudgeId") & "=" & TblJusticeNames.JusticeID)
Next intI
Do Until rs.EOF
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
End If
Me.txtAuthorofMajority.Value = ???
Nothing seems to work. I'm extremely confused at this point.
Thank you for any help you can provide.
I have a form with a text box. I want the value of the text box to display
the names of certain judges. I have a select statement as follows:
Set rs = CurrentDb.OpenRecordset( _
"SELECT JudgeID from tblChosenJustices WHERE CaseName = " &
Form_frmAllData.CaseName _
& "AND JudgeValue=" & varJudgeValue)
This part seems to work fine. Each judge is assigned a certain numeric
value and I now want to compare this value to the value (JusticeID) in
another table which is simply a 2 field list of judge names and judge values,
for instance Ruth Bader Ginsberg (JusticeName)=18(JusticeID). I want the
justice's name to show in the text box, so I did the following:
MySQL = ("SELECT JusticeName FROM tblJusticenames WHERE" &
rs.Fields("JudgeId") & "=" & TblJusticeNames.JusticeID)
Next intI
Do Until rs.EOF
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
End If
Me.txtAuthorofMajority.Value = ???
Nothing seems to work. I'm extremely confused at this point.
Thank you for any help you can provide.