I am trying to get this code to work
If Forms![COJOBMASTER]![COTAKEOFF]![ITEMNO] <> DMax("[ITEMNO]", "COTAKEOFF","[COJOBID] = " & Forms![COJOBMASTER]![COTAKEOFF]![COJOBID]) And Forms![COJOBMASTER]![COTAKEOFF]![CONumber] <> DMax("[CONumber]",
"COTAKEOFF", "[COJOBID] = " & Forms![COJOBMASTER]![COTAKEOFF]![COJOBID])Then
DoCmd.GoToRecord , , acNext
End If
I am trying to do a simple thing, this is for a forward button on the form to scroll through the items, I have two variables as you can see. Any help would be appreciated.
If Forms![COJOBMASTER]![COTAKEOFF]![ITEMNO] <> DMax("[ITEMNO]", "COTAKEOFF","[COJOBID] = " & Forms![COJOBMASTER]![COTAKEOFF]![COJOBID]) And Forms![COJOBMASTER]![COTAKEOFF]![CONumber] <> DMax("[CONumber]",
"COTAKEOFF", "[COJOBID] = " & Forms![COJOBMASTER]![COTAKEOFF]![COJOBID])Then
DoCmd.GoToRecord , , acNext
End If
I am trying to do a simple thing, this is for a forward button on the form to scroll through the items, I have two variables as you can see. Any help would be appreciated.