Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DAO codes
Message
From
27/02/1998 11:33:08
David Wang
Sullivan Environmental Consulting, Inc.
Alexandria, Virginia, United States
 
 
To
27/02/1998 06:52:27
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Miscellaneous
Thread ID:
00081415
Message ID:
00081708
Views:
25
>>can anybody give some sample codes of DAO (say MS-Access)?
>>
>>Thanks
>
>Dim db as Database
>Dim rs as Recordset
>
>Set db = OpneDatabase("C:\MyDB.mdb")
>Set rs = db.OpenRecordset("MyTable")
>
>do while not rs.eof
> msgbox rs("MyField")
> rs.MoveNext
>loop
>
>rs.close
>db.close
>set rs = nothing
>set db = nothing
>
>
>Hope this help.


thanks!
Previous
Reply
Map
View

Click here to load this message in the networking platform