RESPONDER UNA PREGUNTA

Si para responder la pregunta, crees necesario enviar un archivo adjunto, puedes hacerlo a traves del correo [email protected]

    Pregunta:  24711 - PROBLEMA CON DLOOKUP
Autor:  Enrique Miranda Estrada
Hola que tal... tengo un pequeño gran problema con el comando DLookup.., Tengo una tabla llamada Detall inputalmacen de la cual deseo jalar un dato desde un formulario ,tengo la siguiente instruccion

Private Sub CALCULOPRECIO_Click()
Dim CALIB As String
Dim VPOC As String, VEAP As String

VPOC = Me.P_OC
VEAP = Me.EAP
CALIB = DLookup("CAL", "DETALL INPUTALMAC", "EAP=VEAP AND POC=VPOC")
Me.PRECIO_USD_REC = CALIB
End Sub

Y me manda el siguiente error:

SE HA PRODUCIDO EL ERROR 2471 EN TIEMPO DE EJECUCION
LA EXPRESION QUE INTRODUJO COMO PARAMETRO DE CONSULTA PRODUJO EL ERROR EL OBJETO NO CONTIENE EL OBJETO DE AUTOMATIZACION VEAP o VPOC

Lo mas curioso que ocupo una instruccion muy similar desde otro formulario donde tengo que jalar datos de una tabla y ahi me lo da sin ningun problema.. Ojala me puedan ayudar por que me estoy volviendo medio loco... trabajo con Access 2000 con Windows 98.

Muchas gracias


Nombre
Apellidos
Correo
Comentarios