Null values in my table are causing problems in my join query
Hello,
I'm joining multiple tables to create a report. It works fine unless I run into NULL values in the join statement. What can I do to fix this? Below is my query.
What's causing errors is when CInt(Requests.[Approved/Unapproved]) is NULL (this is a text field in my table). And when CInt(Requests.[Request Type]) is NULL (this is also a text field in my table).
Microsoft AccessSQL
Last Comment
AronMcD
8/22/2022 - Mon
Nathan Riley
What fields and I can rewrite it for you, unless you know how do this.
Gallitin,
Thank you for the quick response. The fields that are causing me problems are in BOLD below. The Requests.RequestTypeID is a Numeric field in my table. I'm not sure if that will cause problems using isnull or not. I'm not so much concerned about that though as that field is rarely left null. Let me know if you need more. Thanks.
I copied and pasted Gallitan's code and while I'm not getting the error anymore, I'm not getting the record that I should be getting. I'm going to keep testing....I'll get back to you.
isnull(fieldname,' ')