I fail to see why you need to call the AfterUpdate events in your Current event also.
Doesn't this create an audit entry as you navigate even though the records are not
being changed?
Hi Rick,
Let me be more specific. The audit trail is actually controlled by the
following form events
'--------------------- * audit *---------------------------------
Private Sub Form_Delete(Cancel As Integer)
Call AuditDelBegin("tblListings", "audTmpListings", "ListingsID",
Nz(Me.ListingsID, 0))
End Sub
etc
Private Sub Form_AfterDelConfirm(Status As Integer)
etc
Private Sub Form_AfterUpdate()
etc
Private Sub Form_BeforeUpdate(Cancel As Integer)
'--------------- * FORM CURRENT conditionals * -------------------
But, my conditional control of form values is controlled here (see below
example). It may be that I am duplicating the same action
but I cannot be sure as I was aided in getting these conditions set up by
other VBA Developers. Is my scenario clearer now - I am not sure
if I can elminate any of the following class
Private Sub Form_Current()
Call Status_Price_Reduced_AfterUpdate
Call Status_AfterUpdate
End Sub
'--------------- * CONTROL conditionals - also called
above* -------------------
Private Sub Status_AfterUpdate()
On Error GoTo Err_Handler
Me.Status.SetFocus
If Me.Status.Text = "Sold" Then
Closing_Date.Visible = True
Closing_Details_Frame.Visible = True
Else
Closing_Date.Visible = False
Closing_Details_Frame.Visible = False
End If
If Me.Status.Text = "Vessel Under Offer" Then
Selling_Broker_VUO_ID.Visible = True
Selling_Broker_VUO_Question.Visible = True
Else
'Me.Selling_Broker_VUO_ID.Text = "None"
With Me.Selling_Broker_VUO_ID
.Value = Null
.Visible = False
End With
Me.Selling_Broker_VUO_ID.Visible = False
Me.Selling_Broker_VUO_Question.Visible = False
End If
Exit_Handler:
Exit Sub
Err_Handler:
Select Case Err.Number
Case 2164, 2165 'Can't disable/hide the control with focus.
Me.[ListingID].SetFocus
Resume
Case Else
MsgBox "Error " & Err.Number & " - " & Err.Description
Resume Exit_Handler
End Select
End Sub