ACCESS数据库中小数问题

例如,当我输入个数为0.123,但它就自动变为.123了,输个-0.123,就成-.123,怎么解决啊??我用VB连的数据库,读出来的时候没0,太难看了 数据库的数据类型为数字,双精度
select * from 表 where code=123
我现在想查询的对象是除了id=800987这一列的其余的所有项,怎么办??(id code 都是表中元素)
为什么2.3就行,只有0.的不行呢?我不能写数据库语句判断什么的
sql语句有没有什么能有这样的功能,select * from * where order by **.这是以**查询的,能不能以小数方式找呢?

单元格 格式里应该有设置把

小数点的格式 你看一下阿
温馨提示:答案为网友推荐,仅供参考
第1个回答  2007-09-06
1.------------------
判断一下
<script language="vbscript">
input=-.123
if (input>0 and 1>input) then
ReturnStr = "0"&input
ElseIf(input>-1 and 0>input) then
ReturnStr = "-0"&Replace(input,"-","",1)
Else
ReturnStr = input
end If
MsgBox(ReturnStr)
</script>

2.--------------
select * from 表 where code=123 and id<>800987
第2个回答  2007-09-06
为什么不用文本类型地?数据处理在程序中完成没有什么问题吧
相似回答