Ver Mensaje Individual
  #2  
Antiguo 26-10-2008
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - España
Posts: 18.293
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Cita:
Empezado por Abuelo7 Ver Mensaje
Lo he intentado de varias formas, pero no he sido capaz de conseguirlo.
¿Y exactamente qué problema tienes? ¿Error? ¿No sale nada?

En principio sería algo así:

Código Delphi [-]
SQL := 'SELECT top 1 * FROM TABLA WHERE NUMERO=' + 
  ADOQueryPreguntas.fieldByName('NUMERO').AsString;
Basta con que utilices esta SQL en un TQuery/TADOQuery/TIBQuery/... y deberías poder encontrar el registro
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita