Originally posted by NeoPa
Don't get me wrong, I agree completely. But that is just such a cool quote...
SELECT ID, Sell_Last, Sell_First, Sell_Street, Sell_Str2, Sell_City, Sell_St, Sell_Zip, Sale_Date, Sale_Price, Loan_Amnt, LTV, Deed_Type, Loan_Maturity, Prop_Street, Prop_Str2, Prop_City, Prop_St, Prop_Zip, Prop_Use1, Prop_Use2, Resdnt_Use, Owner_Occ, Notes, Drop, DropRsn, LastMailDate, CallbackDate, CallPerson, HPhone, WPhone, CPhone, email, BestTime, PropType, PropType2, EstValue, CreditScore, LienPos, PmtsCurrent, NumPmtsMade, curbal, [Int Rate], [P&I], BalloonAmt, DateBalloon, DateNxtPmt, DateFirstPmt, Term, src, QuoteNote, Int_Only, AddrChgDate, PhoneAppend, PADNCFlag, PADup, PAConf, CCStatus FROM ASDS_Leads WHERE ID=[Forms]![search_Form]![S_ID] OR ( Sell_Last Like IIf( IsNull([forms]![Search_Form]![S_Last]), Null, [Forms]![Search_Form]![S_Last] & "*" ) AND Sell_First Like ([Forms]![Search_Form]![S_First] & "*") ) ORDER BY Sell_Last;
WHERE (((ASDS_Leads.ID)=[Forms]![search_Form]![S_ID]) AND ((ASDS_Leads.Sell_Last) Like "*") AND ((ASDS_Leads.Sell_First) Like "*")) OR . . . and the names part here
WHERE (((ASDS_Leads.ID) Like IIf(IsNull([forms]![Search_Form]![S_ID]),"*",[Forms]![Search_Form]![S_ID])) AND ((ASDS_Leads.Sell_Last) Like IIf(IsNull([forms]![Search_Form]![S_Last]),"*",[Forms]![Search_Form]![S_Last] & "*")) AND ((ASDS_Leads.Sell_First) Like IIf(IsNull([forms]![Search_Form]![S_First]),"*",[Forms]![Search_Form]![S_First] & "*")))
Comment