Thanks Roy.... I need a little more help here.
The sql statement I have posted in the combo box's row source is not a
function, but just a source. So where or how would I incorporate your code
in the statement? Here is both the row source and your code:
SELECT MsysObjects.Name
FROM MsysObjects
WHERE (((MsysObjects.Name) Not Like "~*" And (MsysObjects.Name) Not Like
"MSys*") AND ((MsysObjects.Type)=-32764))
ORDER BY MsysObjects.Name;
If Me!TheComboName.ListIndex <> -1 Then
DoCmd.OpenReport Me!TheComboName.Value, acViewPreview
Else
MsgBox "You must select a report first!"
End If