error en scan / select

20/04/2004 - 20:47 por Harry Ramírez Jr. | Informe spam
Me da un error en sintaxis cuando coloco essta línea de código en el evento
lostfocus de un texbox:

SELECT (thisform.asignaciones)where(movimiento=this.Value)

cualquier ayuda se le agradece

Saludos,
Harry

Preguntas similare

Leer las respuestas

#1 Luis María Guayán
20/04/2004 - 21:36 | Informe spam
La sintaxis del comando SELECT es incorrecta. Mira en la ayuda la sintaxis
correcta:

SELECT [ALL | DISTINCT] [TOP nExpr [PERCENT]] [Alias.] Select_Item
[[AS] Column_Name] [, [Alias.] Select_Item [[AS] Column_Name] ...]
FROM [FORCE][DatabaseName!]Table [[AS] Local_Alias]
[[INNER | LEFT [OUTER] | RIGHT [OUTER] | FULL [OUTER] JOIN
DatabaseName!] Table [[AS] Local_Alias] [ON JoinCondition …]
[[INTO Destination] | [TO FILE FileName [ADDITIVE] | TO PRINTER
[PROMPT] | TO SCREEN]] [PREFERENCE PreferenceName]
[NOCONSOLE] [PLAIN] [NOWAIT]
[WHERE JoinCondition [AND JoinCondition ...]
[AND | OR FilterCondition [AND | OR FilterCondition ...]]]
[GROUP BY GroupColumn [, GroupColumn ...]]
[HAVING FilterCondition] [UNION [ALL] SELECTCommand]
[ORDER BY Order_Item [ASC | DESC] [, Order_Item [ASC | DESC] ...]]


Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Microsoft Visual FoxPro MVP
________________________________
La palabra imposible solo figura
en el diccionario de los tontos


"Harry Ramírez Jr." escribió en el mensaje
news:e%
Me da un error en sintaxis cuando coloco essta línea de código en el


evento
lostfocus de un texbox:

SELECT (thisform.asignaciones)where(movimiento=this.Value)

cualquier ayuda se le agradece

Saludos,
Harry



Respuesta Responder a este mensaje
#2 Harry Ramírez Jr.
20/04/2004 - 21:37 | Informe spam
Disculpen el error es el siguiente, me había equivocado en el anterior:
SCAN FOR cedpac=this.value AND UPPER(movimiento)

Saludos,
Harry
"Harry Ramírez Jr." escribió en el mensaje
news:e%
Me da un error en sintaxis cuando coloco essta línea de código en el


evento
lostfocus de un texbox:

SELECT (thisform.asignaciones)where(movimiento=this.Value)

cualquier ayuda se le agradece

Saludos,
Harry



Respuesta Responder a este mensaje
#3 Aovs
21/04/2004 - 16:38 | Informe spam
Primero que nada un saludo, pienso que en el segundo parametro, donde
UPPER(Movimiento), no lo estas comparando con nada

SCAN FOR Parametro1 = XXXXXX AND Parametro2 = XXXXXXXX

a no ser que sea una variable de tipo logica aunque no creo porque estas
usando la sentencia UPPER


-
PortalFox :: Nada corre como un zorr
http://www.portalfox.co

PortalFox - NNTP Forum Gatewa
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida