S
SylvieB
Hello
I have a combo box with a drop down of 4 items. Right now, if I select any
of them, the form closes and pass on the data to another form , the only
problem is this should happen only if Item 1 is seIected. If item 2,3 and 4
are selected, it should just close the form. I don’t know how to filter it.
Any ideas?
Here is the code I wrote:
Private Sub txtClosedReason_AfterUpdate()
Dim strWhere As String
strWhere = "ID= " & Me.ID
DoCmd.Close
DoCmd.OpenForm "opportunities details", whereCondition:=strWhere
End Sub
Thank you for any help.
I have a combo box with a drop down of 4 items. Right now, if I select any
of them, the form closes and pass on the data to another form , the only
problem is this should happen only if Item 1 is seIected. If item 2,3 and 4
are selected, it should just close the form. I don’t know how to filter it.
Any ideas?
Here is the code I wrote:
Private Sub txtClosedReason_AfterUpdate()
Dim strWhere As String
strWhere = "ID= " & Me.ID
DoCmd.Close
DoCmd.OpenForm "opportunities details", whereCondition:=strWhere
End Sub
Thank you for any help.