TMD!我的回答怎么只发送了一半?
总之,在第一页录入除序号以外的其他字段,在ACCESS中编写一段代码实现
该字段的编号,这个字段不能设为关键字,但是不用着急,我后面会提到,
DIM AA AS recordset
dim sql as string
dim i as integer
sql="select * from tablename"
run this sql
set aa= this result
aa.movefirst
aa.fields("no")=1
i=1
while not aa.eof
i=i+1
aa.fields("no")=i
aa.movenext
wend
在第二页上用dbgrid与此表相连,你一定会的。
这样,实现了序号为关键字段的效果,不需要手工录入。