ChewDoggie
Programmer
I have the following shaped query to print some labels. However, some of the records are incomplete and don't have an ADDRESS and/or CITY and/or STATE and/or ZIP in the table. Does anyone know of a way I can fine tune this query so that it ignores these incomplete records? Here's what the query looks like now:
sql = "SHAPE {SELECT eventid FROM localseries where seriesid = " & ThisSeriesID & "}"
sql = sql & " APPEND ({select eventid, fname + ' ' + lname as fullname, addr, city + ', ' + state + ' ' + zip as citystatezip"
sql = sql & " from racer INNER JOIN registration on racer.racerid = registration.racerid where registration.eventid = "
sql = sql & Trim(rs!eventID) & " and registration.status = 'Y' order by state, zip, city} as rsRacerData RELATE eventid to eventid)
Many Thanks!
AMACycle
American Motorcyclist Association
sql = "SHAPE {SELECT eventid FROM localseries where seriesid = " & ThisSeriesID & "}"
sql = sql & " APPEND ({select eventid, fname + ' ' + lname as fullname, addr, city + ', ' + state + ' ' + zip as citystatezip"
sql = sql & " from racer INNER JOIN registration on racer.racerid = registration.racerid where registration.eventid = "
sql = sql & Trim(rs!eventID) & " and registration.status = 'Y' order by state, zip, city} as rsRacerData RELATE eventid to eventid)
Many Thanks!
AMACycle
American Motorcyclist Association