Re: Oracle to dbf, again

From: Anders Altberg (x_pragma_at_telia.com)
Date: 06/02/04


Date: Thu, 3 Jun 2004 00:28:39 +0200

Hi Josepe
Does the query work if you insert it directly in the SQLEXEC function? Is
there an error message you can pick up with AERROR?
It's surprising that you join two tables, VTA_DETMP ans VTA_MOVm, (from two
different database?), without any references to primary and foreign keys
that relate them.
Have you checked the the variable h has a numeric value?
-Anders
josepe" <ENEMIGODELSPAMbuzon@navegante.com.sv> wrote in message
news:40BDF262.2030908@navegante.com.sv...

> Here my code, but it is emerging a funtion error in this line:
> x = SQLEXEC(h, lcSQL, 'cursor1' )
> I'm using VFP6; may be this version don't support the command. As this
> fail I can't see any data of the query. Plz help me.
> ..............................................
> PUBLIC h, lcSQL
> h=SQLCONNECT("mydatabank")
> * this opens a window where you can select the ODBC DSN for this Oracle
> database.
> *If you know the name of the DSN you can use it:
>
> TEXT TO lcSQL NOSHOW
> SELECT VTA_DETMP.COD_CIA, VTA_DETMP.COD_SUCURSAL, VTA_DETMP.COD_DOCTOCC,
> VTA_DETMP.NUM_DOCTO, VTA_DETMP.SECUENCIA, VTA_DETMP.COD_BODEGA,
> VTA_DETMP.COD_PROD, VTA_DETMP.CANTIDAD, VTA_DETMP.PRECIO_VTA,
> FROM FACTUR.VTA_DETMP VTA_DETMP, IMPO.VTA_MOVM VTA_MOVM
> WHERE (VTA_DETMP.COD_BODEGA=5) AND (VTA_MOVM.FECHA_DOCTO={ts '2004-05-31
> 00:00:00'})
> ENDTEXT
> x = SQLEXEC(h, lcSQL, 'cursor1' )
>
> IF x <= 0 && the query did not succed.
> AERROR(aa)
> ELSE
> SELECT cursor1
> BROWSE NOWAIT
> ENDIF
>



Relevant Pages

  • Re: DBD::Informix 2003.04 AIX4.3.3 SELECTIVE TEST ERRORS
    ... one which you could fix by removing the database). ... The bug report is below. ... > Informix Server Entries in sqlhosts file ... > # Error Message: ...
    (perl.dbi.users)
  • Re: Module Not Found
    ... Close the database. ... Still in the code window, choose Compile from the Debug menu. ... The error message could be related to something else that is going on, ... VB and press the cancel button I receive the error message ...
    (microsoft.public.access.formscoding)
  • Re: Cannot open my own Databases
    ... Windows Administrator and loads each of these service packs. ... If I have guessed correctly about the error message you see, ... See http://www.QBuilt.com for all your database needs. ... it's possible that the correct workgroup information file ...
    (microsoft.public.access.security)
  • RE: Form loading error
    ... Compact and repair your database; ... I just noticed that I get the same error message when I close the ... An error occured while loading Form_FrmXYZ. ... This Form (XYZ) is not the switchboard nor is it set to auto open. ...
    (microsoft.public.access.formscoding)
  • Re: Dates, Java, and Access Databases
    ... correctly connected and can write to the database. ... I need to have formatted input on the Form Fields. ... you should produce an error message and let them try fixing the data until ...
    (comp.lang.java.help)