J
JAdams
I have a form that is for display only. The query that the records come from has a field called status. I want to have an afterupdate event on a combo box that will requery the form and display the status requested.
Here is the not worked out if statement:
If status = "Status" Then
Exit Sub
ElseIf "Open" Then
'Query should be "Open" in criteria
requery
ElseIf status = "closed" Then
'Query shoule be "Closed in criteria
requery
ElseIf status = "all" Then
'Query should be "" in criteria
requery
Else
MsgBox "An error has occured please contact you systems administrator", vbInformation
End If
How do I go about this? It is probably easier than I think. Thanks
Here is the not worked out if statement:
If status = "Status" Then
Exit Sub
ElseIf "Open" Then
'Query should be "Open" in criteria
requery
ElseIf status = "closed" Then
'Query shoule be "Closed in criteria
requery
ElseIf status = "all" Then
'Query should be "" in criteria
requery
Else
MsgBox "An error has occured please contact you systems administrator", vbInformation
End If
How do I go about this? It is probably easier than I think. Thanks