> > >>//ALLTRIM(dst.ccity)+", "+ALLTRIM(dst.cstate) as dest_city, ; >>concat(TRIM(dst.ccity), ", ",TRIM(dst.cstate) as dest_city, <-- missing parenthesis here Okie doke. Will fix. Thanks, Dragan. >>//LEFT JOIN c_d!users ue ON ue.uid = x.eby ; >>LEFT JOIN users ue ON ue.uid = x.eby >> >>//WHERE cmp.cname like lcCname ; >>WHERE cmp.cname like lcCname ***** NOTE: this is a local variable in VFP! ***** >// so you'd need to insert a '<<lcCname>>' here in textmerge to get the right >// value in the command. Same goes for other VFP variables. Right on, bro :^). >>//AND TTOD(rdt) >= ldDateLow ; >> >>//AND TTOD(rdt) <= ldDateHigh ; > >// instead ot ttod you'd simply have to have '<<ldDateLow>>' compared with the >// rdt field, probably with a ... and rdt between '...' and '...' I was wondering about that, Dragan; however, in the DatePicker code where he's setting this particular criteria, he's using TTOD on a DateTime() return value, striping out the timestamp, even though the actual comparison in the above code is a datetime field in the record. (Shrug.) >>//AND DELETED() = .F. ; > >// there are no deleted records. this line goes away. > >>//AND x.acc = lcAccID ; >> >>//INTO CURSOR curDnumList READWRITE >> >>[NOTE: Decided to stop here when I saw the "INTO CURSOR" code. Hold all horses! :^)] >>>
lcCompany = SelectCompany(user selected company); lcStartDate = DatePicker(StartDate); lcEndDate = DatePicker(EndDate); CompanyRecords = QueryMySQL(lcStartDate,lcEndDate,lcCompany); error = PrintReport(CompanyRecords); IF (error) die(Get the heck out and tell user about it); ELSE return (to main page as a happy camper);>There should be something telling MySQL to direct the result set into a temporary table.