>I like to have all the declarations at the top of the method. I have a code where the declaration is part of the LINK select line such as:
>
>
>Dim loJobs = (From...
>
>
>How can I declare loJobs as in its own DIM line and have the LINK select line in another one?
you can create loJobs anywhere you want. The query isn't executed until you actually use it.