Code:
Dim db As Database

Set db = CurrentDb
is for the current database

Code:
Dim rst as Recordset

Set rst = Me.Recordset.Clone
is for the form's table