An error occurred processing your request

Merging data into macro form: c:\inetpub\wwwroot\gmvehiclewholesale\searchmakemodel.html

Variable error in: {case RMake}

**Variable 'RMake' does not exist. Remember, variable names, database field names and operators are CASE SENSITIVE. (EwGf01.103@Windows NT 5.2)**

In file: c:\inetpub\wwwroot\gmvehiclewholesale\searchmakemodel.html


;; following starts near line number 83 in your source form...
...
// -->
{/htf}
</script>

{comment} get total matched results {/comment}
{set MatchNo 0}
{sql to results source 'dbno1'}
 {case RMake}
      {match 'Toyota'}
  SELECT Count(*) As myCount FROM TotalStocks WHERE stMake = 'Toyota' AND stImageProcess=true and stModel='{ModelList}'
      {match 'Nissan'}
  SELECT Count(*) As myCount FROM TotalStocks WHERE stMake = 'Nissan' AND stImageProcess=true and stModel='{ModelList}'
...
  SELECT Count(*) As myCount FROM TotalStocks WHERE stMake = 'Suzuki' AND stImageProcess=true and stModel='{ModelList}'

 {otherwise}
  SELECT Count(*) As myCount FROM TotalStocks
 {/case}
{/sql}
{set MatchNo myCount}





...
**
expression arguments(1):
 RMake
**