table
id,name,...pblic m_name
sele table
go n
m_name=table.name
thisform.text1.value=m_name
thisform.refresh
id,name,...pblic m_name
sele table
go n
m_name=table.name
thisform.text1.value=m_name
thisform.refresh
直接把文本框和该数据库这个表的某个字段绑定即可,也就是把表添加到表单的数据环境 里,然后直接把数据环境中表的某个字段直接拖到表单上,即可浏览一个字段的数据,你要到第几条,go
n就行了。
要对某字段求和,直接sum fieldname to total_count
thisform.text1.value=total_count
这样就可以了。sum函数得到的是一个函数。