I tried this in the ON KeyDown event and I get a Missing Separator error, can any one tell me where I went wrong?
Hereis the code:
'Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Private Sub Text0_KeyDown(KeyCode As Integer, Shift As Integer)
Dim ControlDDown As Integer
ControlDDown = (KeyCode = vbKeyD And Shift And acCtrlMask) > 0
If ControlDDown = True Then
Me.PartGroup = Me.PartGroup + 1
ERROR-> Me.ItemNumber = Nz(DMax("[ItemNumber]","stblECN_BOM","[PartGroup]" = " & Me!PartGroup)) +1
End If
End Sub
I commented out the orginal in favor of the line Boriska40 gave me, which is correct? Thanks for the assistance.