VB 2005语法错误

时间:2014-02-12 05:23:26

标签: sql vb.net

有人可以帮我检查下面的编码,我有语法错误。

我可能错过了一些语法。

"WHERE PaymentLedger.JobScheduleGUID = JobSchedule.GUID " & _
                 "AND JobSchedule.CLID = LabourProfile.CLID " & _
                 "AND LabourProfile.CLNationality = 'MALAYSIA' " & _
                 "AND (PaymentLedger.SOCSOEmployerContri > 0  or PaymentLedger.EPFEmployeeContri > 0) " & _
                '"AND (PaymentLedger.Credit > 0) " & _
                 "AND (PaymentLedger.Credit > 0 or PaymentLedger.Debit > 0) " & _

由于

1 个答案:

答案 0 :(得分:0)

看看这两行:

            '"AND (PaymentLedger.Credit > 0) " & _
             "AND (PaymentLedger.Credit > 0 or PaymentLedger.Debit > 0) " & _

1 - 删除第一个上的' 2 - 删除& _在第二个