Why won't this VB code work? I only want Jobs where the Job is not empty or not equal to an asterisk *. It crashes where I try to insert the second part of the Where statement.
strSQL = "Select Job, Category, Sum(Area) as SumOfArea, ([SumOfArea])*[Forms]![Form1]![Cost] as Price "
strSQL = strSQL & "FROM " & Forms!Form1!MonthYear
strSQL = strSQL & " Where Job is Not Null "
strSQL = strSQL & "And Job <> " * " "
strSQL = strSQL & "Group By Job, Category;"
Thanks.
strSQL = "Select Job, Category, Sum(Area) as SumOfArea, ([SumOfArea])*[Forms]![Form1]![Cost] as Price "
strSQL = strSQL & "FROM " & Forms!Form1!MonthYear
strSQL = strSQL & " Where Job is Not Null "
strSQL = strSQL & "And Job <> " * " "
strSQL = strSQL & "Group By Job, Category;"
Thanks.