>>you can create loJobs anywhere you want. The query isn't executed until you actually use it.
>
>It is interesting however that we can have access to the Count property even if the query hasn't been executed, thus just before the For Each loop. Because, I have this code:
>
>
>Dim loJobs = (From...)
>
>' If we have some records
>If loJobs.Count > 0 Then
> ' Do something
>End If
>
>' For each record
>For Each loJob In loJobs
> ' Do something
>Next
>
The Count property will execute the query.