|
sql语句有问题?!- .....
- SQL1 = "select * from " & myTable _
- & " where 流水号=" & ws.Cells(12, 1).Value _
- & " and 税号=" & ws.Cells(12, 2).Value _
- & " and 编号='" & ws.Cells(12, 3).Value & "'" _
- & " and 用户地址='" & ws.Cells(12, 4).Value & "'" _
- & " and 用户姓名='" & ws.Cells(12, 5).Value & "'" _
- & " and 房屋面积=" & ws.Cells(12, 6).Value _
- & " and 上次交至日期=" & ws.Cells(12, 7).Value _
- & " and 本次交至日期=" & ws.Cells(12, 8).Value _
- & " and 物业单价=" & ws.Cells(12, 9).Value _
- & " and 物业费=" & ws.Cells(12, 10).Value _
- & " and 垃圾单价=" & ws.Cells(12, 11).Value _
- & " and 垃圾费=" & ws.Cells(12, 12).Value _
- & " and 合计=" & ws.Cells(12, 13).Value _
- & " and 计价方式='" & ws.Cells(12, 14).Value & "'" _
- & " and 操作员='" & ws.Cells(12, 15).Value & "'" _
- & " and 是否交费='" & ws.Cells(12, 16).Value & "'" _
- & " and 交费时间=" & ws.Cells(12, 17).Value
- .....
复制代码
|
|