我自己写的是:Dim dd As single dd=select ((project.infactT)*(depuse.number)/2) as New from project,depuse where( project.projid=depuse.projid) and depuse.projid='" & Trim(combo1.text) & "' and depuse.classid='" & Trim(combo1.text) & "'"
strSQl = "Select New = a.infactT / b.number * 2 from project a join depuse b on a.projid = b.projid where b.projid = '" + combo1.text+"' and b.classid = '"+combo2.text+"'"