Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/01/2008, 12:24
Avatar de GeoAvila
GeoAvila
Colaborador
 
Fecha de Ingreso: diciembre-2003
Ubicación: Antigua Guatemala
Mensajes: 4.032
Antigüedad: 20 años, 5 meses
Puntos: 53
Re: error en sintaxis

Cita:
Iniciado por yohannita Ver Mensaje
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..
__________________
* Antes de preguntar lee las FAQ, y por favor no hagas preguntas en las FAQ
Sitio http://www.geoavila.com twitter: @GeoAvila