i can't debug because the program stuck . i can't use f8 or anything. the message that it's been send state that , "due to an unexpected error viusla basic has to shut down" , and also include a link to see what originate the error , in this part is where the name of the .dll it`s shown. i got .dll registred , thats fine .

maybe my problem its the way i'm doing the connection and passing to report . i don't know.

i'm taking a wild guess that the error is generated here.

conexion = connection
consultaSQL= query sentence

VB Code:
  1. Report.Database.AddADOCommand conexion, consultaSQL

thanks shakti5385