Access: Database-connectie maken

Een snelle database-connectie in Access maak je als volgt:

Dim dbs As Database
 Dim rst As Recordset

Set dbs = CurrentDb

Set rst = dbs.OpenRecordset("SELECT * FROM tbl", , dbSeeChanges)

Door dbSeeChanges te gebruiken voorkom je moeilijkheden als je vanaf verschillende kanten (form, VBAcode) wijzigingen maakt in hetzelfde record.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to Top