I can't find out how to use the AND keyword.
DoCmd.OpenForm "frmRetKoder", , , "MaskineID = [Forms]![frmInfoMaskiner]![MaskineID]" And "KomponentID = [Forms]![frmInoMaskiner]![KtlFane45] + 1", , acDialog
When I am having only one of the IDs in the condition I get the records sorted. But no...