R
Renee
Good Morning all,
I have the following code on the After Update event of a combo box:
Private Sub biennium_AfterUpdate()
Dim varBiStart As Variant
Dim varBiEnd As Variant
If Not IsNull(Me.biennium) Then
varBiStart = DLookup("[beinnium_start]", "tbl_Bienniums", "[Auto_ID] = "
& Me.biennium)
varBiEnd = DLookup("[biennium_end]", "tbl_bienniums", "[Auto_ID] = " &
Me.biennium)
If Not IsNull(varBiStart) Then
Me.start_date = varBiStart
If Not IsNull(varBiEnd) Then
Me.end_date = varBiEnd
End If
End If
End If
End Sub
I am getting a runtime error 2001, stating I have canceled the previous
operation. I don't know what 'operation' it could be referring to. I have
default values on the start_date and end_date, but I don't see why I can't
update that value based on the biennium selection.
Thank you in advance for your support!
Renee
I have the following code on the After Update event of a combo box:
Private Sub biennium_AfterUpdate()
Dim varBiStart As Variant
Dim varBiEnd As Variant
If Not IsNull(Me.biennium) Then
varBiStart = DLookup("[beinnium_start]", "tbl_Bienniums", "[Auto_ID] = "
& Me.biennium)
varBiEnd = DLookup("[biennium_end]", "tbl_bienniums", "[Auto_ID] = " &
Me.biennium)
If Not IsNull(varBiStart) Then
Me.start_date = varBiStart
If Not IsNull(varBiEnd) Then
Me.end_date = varBiEnd
End If
End If
End If
End Sub
I am getting a runtime error 2001, stating I have canceled the previous
operation. I don't know what 'operation' it could be referring to. I have
default values on the start_date and end_date, but I don't see why I can't
update that value based on the biennium selection.
Thank you in advance for your support!
Renee