如何优化Access数据库

zyc嫖客

zyc嫖客

2016-02-19 13:29

下面是个简单易学的如何优化Access数据库教程,图老师小编详细图解介绍包你轻松学会,喜欢的朋友赶紧get起来吧!

How to speed up database access

(本文来源于图老师网站,更多请访问https://m.tulaoshi.com/bianchengyuyan/)

Here is a trick to loop through a recordset faster. Often when looping through a recordset people will use the following code:

Do While Not Records.EOF
  Combo1.AddItem Records![Full Name]
  Eecords.Movenext
LoopThe problem is that everytime the database moves to the next record it must make a check to see if it has reached the end of the file. This slows the looping down a great deal. When moving or searching throuch a large record set this can make a major difference. Here is a better way to do it.

(本文来源于图老师网站,更多请访问https://m.tulaoshi.com/bianchengyuyan/)

Records.MoveLast
intRecCount=Records.RecordCount
Records.MoveFirst

For intCounter=1 To intRecCount
  Combo1.AddItem Records![Full Name]
  Records.MoveNext
Next intCounterYou should see about a 33% speed increase.

展开更多 50%)
分享

猜你喜欢

如何优化Access数据库

编程语言 网络编程
如何优化Access数据库

优化-数据库

SQLServer
优化-数据库

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

如何操作Access数据库

编程语言 网络编程
如何操作Access数据库

access数据库安全

编程语言 网络编程
access数据库安全

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

修复Access数据库

编程语言 网络编程
修复Access数据库

网站优化之数据库优化

Web开发
网站优化之数据库优化

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

Add data to the Access database using ADO

Add data to the Access database using ADO

最小高度100%页脚保持在底部的布局方法

最小高度100%页脚保持在底部的布局方法
下拉加载更多内容 ↓