现在数据库mydatabase中有两个表,如果打开某一个表,并把表中的数据用表格的方式表现出来?
------解决方案--------------------------------------------------------
连接代码略
If SQLExec(连接句柄,"Select * From 表名","cT1")>0
Thisform.Grid1.Recordsource='cT1'
Thisform.Grid1.Refresh
Endif
------解决方案--------------------------------------------------------
...
if sqlexec(hh, 'Select * From 征订数据库', 'cT1') > 0
Thisform.Grid1.Recordsource='cT1'
Thisform.Grid1.Refresh
else
* 后台取数失败
endif