首先,把列表框的 RowSourceType 属性改为 1-值然后,把列表框的 RowSource 属性改为: 表1,表2,表3 表的名字我不知道,你自己套,用逗号隔开(英文的逗号)
OPEN DATABASE yourDatabase
lnCount = ADBOBJECTS(tTable,"TABLE")
IF lnCount == 0
? "No Tables"
RETURN
ENDIF
lcString = ''
FOR i = 1 TO lnCount
lcString = lcString + tTable(i) + ","
NEXTlcString = substr(lcString,1,len(lcString) - 1)
thisform.combo1.Style = 2
thisform.combo1.value = 1
thisform.combo1.RowSourceType = 1
thisform.combo1.RowSourceType = lcString
CLOSE DATABASES
摆渡一下你就知道