Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
CustomFieldInvoiceLineOther(x) |
Author |
Message |
|
Posted : 2008-08-12 03:22:37 |
We Use the CustomFieldInvoiceLineOther fields for a number of invoice fields.I can change (with an update statement) them, and they are changed on the invoices correctly. One of the things we do, is use CustomFieldInvoiceLineOther6 to indicate it is a transaction type A, or transaction type B since we want all the As on one invoice and all the Bs on the other. When I read the invoice to find an A transaction the CustomFieldInvoiceLineOther6 is always = Null. How can I look up with this field ??
Steve
sqlstatement = "SELECT i.*, l.* from invoice i, invoiceline l where i.txnid = l.txnid and i.CustomerRefListID = '" & tblQBAccount("ListID") & "' and i.isPending = true and l.CustomFieldInvoiceLineOther6 = 'S'"
sqlstatement = "SELECT i.*, l.* from invoice i, invoiceline l where i.txnid = l.txnid and i.CustomerRefListID = '" & tblQBAccount("ListID") & "' and i.isPending = true"
The first one retrieves nothing, and the second retrieves all invoice lines , but i cannot identify the "S" transactions
For i = 0 To 1000 Debug.Print tblQBInvoice(i).Name & "-" & tblQBInvoice(i) Next i
CustomFieldInvoiceLineOther3- CustomFieldInvoiceLineOther4- CustomFieldInvoiceLineOther5- CustomFieldInvoiceLineOther6- CustomFieldInvoiceLineOther7-
But I know it has an "S" in it |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2008-08-12 09:54:37 |
Using QODBC, the default custom fields are Invoice.CustomFieldOther and InvoiceLine.CustomFieldInvoiceLineOther1 and InvoiceLine.CustomFieldInvoiceLineOther2. Not to sure what you mean by CustomFieldInvoiceLineOther6 here unless you have named your adhoc custom fields as InvoiceLineOther6. In which case, try doing:
Select * from InvoiceLine unoptimized where CustomFieldInvoiceLineOther6='S'
as your optimized table may have simply not been updated. See: How do I setup the QODBC Optimizer? Where are the Optimizer options? for more. |
|
|
|
|
Posted : 2008-08-12 10:29:50 |
Tom,
YOU ROCK .. !!!!!!! That works perfectly .. and now io can see all the extraneous fields |
|
|
|
|