I am creating a front end with VB6 and my database is Sybase. Using DSN I have created some small exe\'s to populate reports in grid. It was working fine.
You cannot use when user_id <> Null. You must use user_id Is Null or user_id Is Not Null. Anything = or <> to Null results in Unknown which is treated as false for the Case expression.