I'm not exactly sure why this isn't incrementing because it seems to be working in a similar situation elsewhere.
Code:
Dim dbCMC As DAO.Database
Dim strSQL As String
Dim lngChgNum As Long
Dim datChgDate As Date
datChgDate = Date
lngChgNum = DCount("JobNum", "dbo_tblWgtTrack", "[JobNum] = '" & Me.txtJobNum & "' And [Detlr] = '" & Me.cboDtlr & "' And [Segment] = '" & Me.txtSegment & "' And [Desc] = '" & Me.txtDesc & "'")
lngChgNum = lngChgNum + 1
Set dbCMC = CurrentDb
strSQL = "INSERT INTO dbo_tblWgtTrack([DetDBID], [JobNum], [Detlr], [Segment], [Desc], [ChgNum], [ChgDate], [DetWgt], [Reason]) " & _
"VALUES('" & strDetDBID & "', '" & Me.txtJobNum.value & "', '" & strEmpName & "', '" & Me.txtSegment.value & "', '" & Me.txtDesc.value & "', " & lngChgNum & ", #" & datChgDate & "#, '" & Me.txtDetWt.value & "', '" & "Revision" & "')"
It's supposed to run every time the weight is updated, so that if there are any other entries it logs the current weight and what change number it is (based on previous logged changes for that submittal)