G
Guest
I just need to do a simple thing, look at the value of a field from a
recordset, run some SQL using that value, move to the next and repeat.
Here's what I've got so far.
Set rsZips = CurrentDb.OpenRecordset("SELECT ZIP from tblRTD GROUP BY ZIP")
Set fldZip = rsZips.Fields(0)
rsZips.MoveFirst
Do While rsZips.EOF = False
MsgBox fldZip
rsZips.MoveNext
If rsZips.EOF Then
Exit Do
End If
Loop
I know this is a piece of cake, but I'm getting nowhere on my own.
Thanks,
Paul
recordset, run some SQL using that value, move to the next and repeat.
Here's what I've got so far.
Set rsZips = CurrentDb.OpenRecordset("SELECT ZIP from tblRTD GROUP BY ZIP")
Set fldZip = rsZips.Fields(0)
rsZips.MoveFirst
Do While rsZips.EOF = False
MsgBox fldZip
rsZips.MoveNext
If rsZips.EOF Then
Exit Do
End If
Loop
I know this is a piece of cake, but I'm getting nowhere on my own.
Thanks,
Paul