Hi Everyone:
I have a VERY novice question. I know that SELECT * will bring all fields and all occurances of a certain criteria. What I don't know is how to request certain fields and still get all of the records that meet a certain criteria:
My code only get me the first occurance:
If get1strec = "False" Then
gaKey = cboHH.ItemData(cboHH.ListIndex)
sSQL = "SELECT Fnamec, Lnamec, related, sex, dobc"
sSQL = sSQL & " FROM HHold"
sSQL = sSQL & " WHERE scccc_ID = "
sSQL = sSQL & sSID
GridRec.Open sSQL, adoCNN
End If
How can I alter the above code to get all of the recs
Where scccc_ID = sSID? I know that certain records have multi occurances but I cannot get them to show.
Thanx
Trudye
I have a VERY novice question. I know that SELECT * will bring all fields and all occurances of a certain criteria. What I don't know is how to request certain fields and still get all of the records that meet a certain criteria:
My code only get me the first occurance:
If get1strec = "False" Then
gaKey = cboHH.ItemData(cboHH.ListIndex)
sSQL = "SELECT Fnamec, Lnamec, related, sex, dobc"
sSQL = sSQL & " FROM HHold"
sSQL = sSQL & " WHERE scccc_ID = "
sSQL = sSQL & sSID
GridRec.Open sSQL, adoCNN
End If
How can I alter the above code to get all of the recs
Where scccc_ID = sSID? I know that certain records have multi occurances but I cannot get them to show.
Thanx
Trudye