Thanks for the reply, But it still doesn't work. This is the code I've made in VBA:
Private Sub Command37_Click()
DoCmd.OpenReport "qryOpkomst", acViewPreview, , "Opkomstid = " & Me.Opkomstid
End Sub
I can't figure out what's wrong with it. Can anyone help me?
Rob