B
bw
Question: How do I make the Combo Box display the default value after I
click on the Combo Box?
I posted this question earlier, but found that I had made my question too
confusing.
I have an unbound Combo Box with the name "cboCancelFlight".
When the form is opened, the Combo Box displays the default value "Select a
Flight".
When I click the Combo Box to select a value, the following procedure is
executed:
Private Sub cboCancelFlight_Click()
Dim ans
ans = MsgBox("Are you sure you want to delete Request Number " &
CancelFlight & "?", 36, "Be Sure")
If ans = vbNo Then
' This is where I want to have the Combo Box again display the defalue value
"Select a Flight".
Exit Sub
End If
End Sub
The RowSource for cboCancelFlight is as follows:
SELECT DISTINCT tblSelectMainReport.RequestNum
FROM tblSelectMainReport
WHERE (((Nz([RequestNum],0)) Between 1 And 10));
click on the Combo Box?
I posted this question earlier, but found that I had made my question too
confusing.
I have an unbound Combo Box with the name "cboCancelFlight".
When the form is opened, the Combo Box displays the default value "Select a
Flight".
When I click the Combo Box to select a value, the following procedure is
executed:
Private Sub cboCancelFlight_Click()
Dim ans
ans = MsgBox("Are you sure you want to delete Request Number " &
CancelFlight & "?", 36, "Be Sure")
If ans = vbNo Then
' This is where I want to have the Combo Box again display the defalue value
"Select a Flight".
Exit Sub
End If
End Sub
The RowSource for cboCancelFlight is as follows:
SELECT DISTINCT tblSelectMainReport.RequestNum
FROM tblSelectMainReport
WHERE (((Nz([RequestNum],0)) Between 1 And 10));