Well, it's wasn't really code specific. It was meant as a WTF...But I supposed I could put something up here as an example.
Okay; this code works. It's in a textbox on my member's page that displays a running total on the member's detail page.
Code:
=DSum("player_points","plr_transactions","member=" & [ID_memtbl])
Now, if I add anything like:
Code:
Private Sub Form_Dirty()
record_modified = Now()
End Sub
When I run the form, the code above that WORKS, suddenly doesn't.
I also have some more code that the form uses:
Code:
Private Sub Form_Current()
'Check to see if someone erased the memberID and it's blank.
If IsNull(Me!member_id) Then
'Alert the user that the member ID has been deleted.
MsgBox "The ID of this player is missing or has been deleted. We will assign a new one."
' Assign the member a new ID
Me!member_id = DMax("member_ID", "members") + 1
'If the memberID is new record then find the last ID entered and increment it.
If Me!member_id = 0 Then Me!member_id = DMax("member_ID", "members") + 1
End If
End Sub
This code ALSO works UNTIL I put in more code in a different Subroutine.