Cita:
Iniciado por yohannita
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
creo que debería ser asi.. en la linea anterior al error..
" AND week_id = " & txt_week.Text & _
y en la linea siguiente agregar un espacio antes del AND
nos vemos..