A
andrew v via AccessMonster.com
i'm a using a vb code for data duplication in the afterupdate event and i'm
getting an error message when it gets to "elseif"
Private Sub CustomerID_AfterUpdate()
Dim strwhere As String
Dim varresult As Variant
With Me.CustomerID
If (.Value = .OldValue) Or IsNull(.Value) Then
'do nothing
ElseIf (when i press enter to enter the next arguments the error
"Compile error: expected expression comes up)
getting an error message when it gets to "elseif"
Private Sub CustomerID_AfterUpdate()
Dim strwhere As String
Dim varresult As Variant
With Me.CustomerID
If (.Value = .OldValue) Or IsNull(.Value) Then
'do nothing
ElseIf (when i press enter to enter the next arguments the error
"Compile error: expected expression comes up)