Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with a query
Message
 
To
23/05/2002 14:56:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00660684
Message ID:
00660690
Views:
9
>Hello, i have a query that i tryng to compare with a variable that always changes, this the query:
>
>NUMERO=ARREGLO(I,1)
>
>SELECT ATENCION.FINICIO, ATENCION.FFIN FROM ATENCION WHERE ATENCION.NUMERO=(&NUMERO) INTO ARRAY PAUSAARRAY
>
>And it displays the next message error, how do i fix this?
>Thanks for the help.

If your NUMERO variable already contains the necessary value, you don't need the brackets and & symbol. I would also suggest to change the variable name since it is the same as a field name, or at least use m. prefix like m.numero

SELECT ATENCION.FINICIO, ATENCION.FFIN FROM ATENCION WHERE ATENCION.NUMERO = m.NUMERO INTO ARRAY PAUSAARRAY
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform