如何确定有多少人登陆数据库?
Sub ShowUserRosterMultipleUsers() cn.Provider = "Microsoft.Jet.OLEDB.4.0" cn2.Open "Provider=Microsoft.Jet.OLEDB.4.0;" _ ' The user roster is exposed as a provider-specific schema rowset Set rs = cn.OpenSchema(adSchemaProviderSpecific, _ 'Output the list of all users in the current database. Debug.Print rs.Fields(0).Name, "", rs.Fields(1).Name, _ While Not rs.EOF End Sub
|
- 上一篇:VB:使ACCESS数据库在网络使用中保持同步
- 下一篇:Access命令行参数