Hi, i'm very new to Access and VB, and im about to print a specific record.. but im getting an error with this code (error is "Type mismatch").
My reports name is Tilsynsskjema utskrift.
Primary key is ID.
The forms name is frmTobakkTilsyn.
Option Compare Database
Private Sub Kommando320_Click()
DoCmd.OpenReport [Report_Tilsynsskjema utskrift], acViewPreview, , "ID = " & Forms!Form_frmTobakkTilsyn
End Sub