Hello,
I was wondering what the difference was between using Cstr() and Str() in Access 2007 queries. Where would you use either?
From what I've heard, str converts a number to a string but leaves an additional trailing blank space to accommodate negative numbers with the minus symbol at the beginning (i.e -500). However, I tested this out in Access 2007 and compared the results 2 identicle queries, one with cstr and one with str and they gave the exact same results, even for negative numbers!
I guess what I'm really asking is, can one get by simply by using cstr exclusively? Are there any occasions that you can think of where str is absolutely necessary? Because I've yet to see it...
Thanks in advanced!
I was wondering what the difference was between using Cstr() and Str() in Access 2007 queries. Where would you use either?
From what I've heard, str converts a number to a string but leaves an additional trailing blank space to accommodate negative numbers with the minus symbol at the beginning (i.e -500). However, I tested this out in Access 2007 and compared the results 2 identicle queries, one with cstr and one with str and they gave the exact same results, even for negative numbers!
I guess what I'm really asking is, can one get by simply by using cstr exclusively? Are there any occasions that you can think of where str is absolutely necessary? Because I've yet to see it...
Thanks in advanced!