Hi Dave,
It seems like you would insert the format statement in the 'webots section'
like you do when you are trying to do a select distinct statement but it
doesn't take it there.
Anyway it was too big so I created a simple one cell query returning a count
value to a table in a cell cell.
Thanks
Pat
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>CacTotal</title>
</head>
<body>
<table border="1" width="100%" id="table1">
<tr>
<td> </td>
<td>
<table width="100%" border="1">
<thead>
<tr>
<th ALIGN="LEFT"><b>CacTotal</b></th>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart"
s-columnnames="CacTotal,CACActive,CACSuspended,PSTotalActive,ACSTotalSites,ActiveACSSitesNotInCAC,ActiveCACSitesNotInACS,ACSSitesNotInPS"
s-columntypes="131,131,131,131,131,131,131,131" s-dataconnection="Onestop"
b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice s-menuvalue
b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE"
b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0"
b-makeform="FALSE" s-recordsource="NADSummary_Master_Counts"
s-displaycolumns="CacTotal" s-criteria s-order s-sql="SELECT * FROM
NADSummary_Master_Counts" b-procedure="FALSE" clientside suggestedext="asp"
s-defaultfields s-norecordsfound="No records returned." i-maxrecords="256"
i-groupsize="0" botid="0" u-dblib="_fpclass/fpdblib.inc"
u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY"
preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font
color="#000000">This is the start of a Database Results region. The region
will not work unless the page has a file extension of ".asp". The page must
be fetched from a web server with a web browser to display correctly; the
current web is stored on your local disk or network.</font></td></tr>"
startspan --><!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database
Results component on this page is unable to display database content. The
page must have a filename ending in '.asp', and the web must be hosted on a
server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM NADSummary_Master_Counts"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=1 align=""LEFT"" width=""100%"">No records
returned.</td></tr>"
fp_sDataConn="Onestop"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&CacTotal=131&CACActive=131&CACSuspended=131&PSTotalActive=131&ACSTotalSites=131&ActiveACSSitesNotInCAC=131&ActiveCACSitesNotInACS=131&ACSSitesNotInPS=131&"
fp_iDisplayCols=1
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="19797" --><tr>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="CacTotal,CACActive,CACSuspended,PSTotalActive,ACSTotalSites,ActiveACSSitesNotInCAC,ActiveCACSitesNotInACS,ACSSitesNotInPS"
s-column="CacTotal" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1"><<</font>CacTotal<font
size="-1">>></font>" startspan
--><%=FP_FieldVal(fp_rs,"CacTotal")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="14077" --></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0"
clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00"
width="100%"><font color="#000000">This is the end of a Database Results
region.</font></td></tr>" startspan --><!--#include
file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody>
</table>
<p> </td>
<td> </td>
</tr>
</table>
</body>
</html>