I thought the Str function was supposed to change a number to a string. It didn't throw any errors in my query - but it just didn't return any records on the join. I was joining on an ID number, but the ID number was datatyped as string in one table, and as integer in the other table. So I did something like this:
INNER JOIN ON Str(table1.ID) = table2.ID
Returned zero records. So I just put a "C" in front of the "Str" function (i.e. I used the Cstr function). This worked fine.
So this leaves me wondering, what exactly does the Str function do? Because I'd like to know why it didn't help me do the join.
INNER JOIN ON Str(table1.ID) = table2.ID
Returned zero records. So I just put a "C" in front of the "Str" function (i.e. I used the Cstr function). This worked fine.
So this leaves me wondering, what exactly does the Str function do? Because I'd like to know why it didn't help me do the join.