Elementary
Technical User
How and where in the code below can I force decimals to appear? Event_Category is a database field listing reading book levels such as 1.3 or 5.0 etc. The Event Category field in the Access database file does display the decimals, but when published, the drop-down-menu on the form displays some levels as whole numbers resulting in an inaccurate search for grade level 5 books, for example, which lists matcing books including levels 1.5, 2.5, etc. as well as level 5 books. I've attempted to add FormatNumber and ,1 as I've read online tips, but have been unsuccessful. A solution would be greatly appreciated. Please be specific. I'm very new to this. Thanks a million!
from Elementary
Set conn = Server.CreateObject("ADODB.Connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & Server.MapPath("db/events.mdb")
conn.Open DSNtemp%>
<% myquery="SELECT DISTINCT (Event_Category) FROM tblEvents ORDER BY Event_Category ASC"%>
<% Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open myquery, conn, 3, 3 %>
<P><font color="#000000"><B>List All Books In A Book Level</B></font></P>
<P>
<select class="select" name="FormCat" size="1">
<% Do While Not rs.EOF %>
<option name="FormCat">
<% = rs ("Event_Category") %>
<% rs.movenext %>
<% loop %>
<br>
<%rs.Close
Set rs = Nothing %>
from Elementary
Set conn = Server.CreateObject("ADODB.Connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & Server.MapPath("db/events.mdb")
conn.Open DSNtemp%>
<% myquery="SELECT DISTINCT (Event_Category) FROM tblEvents ORDER BY Event_Category ASC"%>
<% Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open myquery, conn, 3, 3 %>
<P><font color="#000000"><B>List All Books In A Book Level</B></font></P>
<P>
<select class="select" name="FormCat" size="1">
<% Do While Not rs.EOF %>
<option name="FormCat">
<% = rs ("Event_Category") %>
<% rs.movenext %>
<% loop %>
<br>
<%rs.Close
Set rs = Nothing %>