次の Linq クエリで、「string から type 'double' への変換」エラーが発生します。
Dim query = From Corrections In Test _
Where Not Corrections.Expected_Bill = Corrections.Bill _
Select Corrections.Account, _
Corrections.Site, _
Action = If(Corrections.Bill = "No billing PLI", _
+"This site has no billing PLI set up; " _
+ "please add " + Corrections.Expected_Bill, _
+"This site has an incorrect billing PLI set up; " _
+ "please remove " + Corrections.Bill + " and " _
+ "add " + Corrections.Expected_Bill)
クエリの 'If(Corrections.Bill = "No billing PLI"' の部分が例外をスローしているように見えますが、すべてのフィールドがテキストであることを考えると、なぜこれが起こるのかわかりません。アイデアはありますか?ありがとう!