从教材上下载了个例子,有如下过程:
Sub cproperty(pName, pType, pValue)
On Error GoTo ki
Set prp = CurrentDb.CreateProperty(pName, pType, pValue)
CurrentDb.Properties.Append prp
Me![Check1] = pValue
Exit Sub
ki:
Me![Check1] = CurrentDb.Properties(pName).Value
End Sub
请问,该过程为什么不放在“模块”中而是放在窗体中的?究竟放在“模块”中与放在窗体中有何区别?