
08/01/2008, 11:39
|
| | Fecha de Ingreso: noviembre-2007
Mensajes: 39
Antigüedad: 17 años, 5 meses Puntos: 0 | |
error en sintaxis hola alguien m puede ayudar...... m marca 1 error de sintaxis cerca de la palabra and (negrita), no se q falte he estado checando parentesis y todo el show pero no se q pueda ser !!! alguien m puede echar la mano con la sintaxis???
If AdminTool.rd_comppending.Value = True Then
strSQL = " SELECT distinct(signature), department.name dept " & _
" From personnel, Department " & _
" Where dept_id = Department.id " & _
" AND department.name like '" & AdminTool.txt_trpdept.Text & "%' " & _
" AND active = 1 " & _
" AND signature not in ( SELECT distinct(signature) " & _
" From current_daily_entry, Department " & _
" Where user_dept_id = Department.id " & _
" AND week_id = " & txt_week.Text & " " & _
" aNd department.name like '" & AdminTool.txt_trpdept.Text & "%' " & _
" and completed = 1 ) " & _
" ORDER BY signature "
gracias |