At 71, I would hardly class myself as a 'young'n'
Got ya beat by 19 years
BTW, surprised that this code didn't work:
Code:
Private Sub cmdNewItem_Click()
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
' User wants to add a new item to the inventory.
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Dim lngCount As Long
lngCount = Me.RecordsetClone.RecordCount
DoCmd.OpenForm "frmItemDescriptor", , , , , acDialog
Me.RecordsetClone.MoveLast
If Me.RecordsetClone.RecordCount > lngCount Then Me.Requery
End Sub
My final solution:
Code:
Private Sub cmdNewItem_Click()
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
' User wants to add a new item to the inventory.
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Dim lngCount As Long
lngCount = DCount("*", "QInv")
DoCmd.OpenForm "frmItemDescriptor", , , , , acDialog
If DCount("*", "QInv") > lngCount Then Me.Requery
End Sub