I have some code that depending on the day of the week a certain query is created:
Select Case Today.dayofweek
ProEnroll = From pe In Me.DataWorkspace.ApplicationData.PaidProgramsEnrollments
Where pe.ProgramName = pp.ProgramName andAlso pe.Monday = True
ProEnroll = From pe In Me.DataWorkspace.ApplicationData.PaidProgramsEnrollements
Where pe.ProgramName = pp.ProgramName andAlso pe.Tuesday = True
When I go to use ProEnroll, intellisense does not recognize it. If it was not in a Select Case structure Intellisense would recognize it. How can I get around this.