Hi everyone,
this is my code:
SELECT CDDEBITEUR, INVOICENR
FROM DEBINVOICE
WHERE INVOICENR > & lngInvoiceNr &
ORDER BY INVOICENR
InvoiceNr is something like 05003456 or 55763243
(so either it starts with a zero or it doesn't)
Suppose lngInvoiceNr = 05003456
Because I converted it to int, it's 5003456 (without the preceding zero)
When leaving the statement like this, it doesn't show me the invoices after invoiceNr 5003456 but it shows me all invoices where invoiceNr doesn't start with a zero...
So I though I had to convert INVOICENR.
I wrote the following statement:
SELECT CDDEBITEUR, INVOICENR
FROM DEBINVOICE
WHERE TO_NUMBER(INVOICENR) > & lngInvoiceNr &
ORDER BY INVOICENR
However, I get the following error while executing this statement:
Run-time error '-2147217900 (80040e14)':
[MERANT][ODBC SQLBase driver][SQLBase]00979 PRS PSR Plus sign required for outer join
Can someone please help me out?
I'm working with VB 6 on a SQLBase driven Database.
Many thanks for your time.
this is my code:
SELECT CDDEBITEUR, INVOICENR
FROM DEBINVOICE
WHERE INVOICENR > & lngInvoiceNr &
ORDER BY INVOICENR
InvoiceNr is something like 05003456 or 55763243
(so either it starts with a zero or it doesn't)
Suppose lngInvoiceNr = 05003456
Because I converted it to int, it's 5003456 (without the preceding zero)
When leaving the statement like this, it doesn't show me the invoices after invoiceNr 5003456 but it shows me all invoices where invoiceNr doesn't start with a zero...
So I though I had to convert INVOICENR.
I wrote the following statement:
SELECT CDDEBITEUR, INVOICENR
FROM DEBINVOICE
WHERE TO_NUMBER(INVOICENR) > & lngInvoiceNr &
ORDER BY INVOICENR
However, I get the following error while executing this statement:
Run-time error '-2147217900 (80040e14)':
[MERANT][ODBC SQLBase driver][SQLBase]00979 PRS PSR Plus sign required for outer join
Can someone please help me out?
I'm working with VB 6 on a SQLBase driven Database.
Many thanks for your time.