Here is the sql generated after turning on the DEBUG for a forms application.
(mysqlt): SELECT iniid, cuiid, loiid, ldiid, lmiid, sriid, ltiid, sriSecondary, infPrimaryCommission, inbPrimaryGross, infSecondaryCommission, inbSecondaryGross, insDescription, iniOrderNumber, insPONumber, indDateOfOrder, indDateOrderDue, indCompletionDate, indInvoiceDate, inbRushOrder, inbDiscount, infDiscountPercent, inbTaxExempt, infOrderTotal, infSalesTax, infSalesTaxOther, infShipping, infAmountDue, infPayments, infBalanceDue, insQuickBooksID, indRoyaltyUploadDate, indQuoteChangeDate, indCreateDate, indUpdateDate, indUpdateUser, insMachineName, infRushOrderPercent, inbReadyToPost, inbManualInvoiceDate from invoice WHERE (iniid = 439) AND (iniid = 0) order by iniid
NOTE: at the end the application is adding AND (iniid = 0)
So I checked the application settings:
Form Settings (Left nav) -> SQL -> within the WHERE CONDITION text box I have this defined iniid = [iniid]
This generates the above shown SQL: … WHERE (iniid = 439) problem is it always adds AND (iniid = 0)
Troubleshooting:
- Global is set for [iniid] and for local variable {iniid}
- Form Settings (Left nav) -> Unique Key -> iniid is select as the UK1: iniid
This happens in a lot of my form applications.
Austin, TX (user)