Microsoft access slider 6.0 基于查询创建最大值和最小值

Microsoft access slider 6.0 create the max and min based on a query

是否可以使用访问数据库中的查询来设置滑块的最大值和最小值?类似于:

Dim x as double  

x = select count(mydata) from mytable;  

set me.Slider0.max = x
Dim x as double
Dim rs as ADODB.Recordset
Dim s as string

s = "SELECT COUNT(mydata) FROM mytable"
rs = ThisDB.Execute(s)
x = Cint(rs)
Set Me!Slider0.Max = x
Set Me!Silder0.Min = x - x

或者类似的东西。更改您的最小值。