I have a field that is really giving me a hard time, the data is query from main system, but has the wrong data type...it comes to me as text, and I need to convert to number....this normally isn't a problem for me, but this case is wasting my time...
I've tried so many combinations... I use a make table query to copy accross to another table, but can't use complete conversion to get it accross without error, so I do a partial convert ( dealing with some nulls) and then I query the new table and try to convert to INT but I get the #Error it that field.
eg..
nz(Field)
nz(Field,0)
nz(Field,"0")
Cint(nz(Field,"0"))
Cint(nz(Field,0))
iif(isnull(Field),0,Field)
I feel like I'm going in circles because I'm dealing with Nulls and converting and it should work....I've done it a 1000 times?
I've tried so many combinations... I use a make table query to copy accross to another table, but can't use complete conversion to get it accross without error, so I do a partial convert ( dealing with some nulls) and then I query the new table and try to convert to INT but I get the #Error it that field.
eg..
nz(Field)
nz(Field,0)
nz(Field,"0")
Cint(nz(Field,"0"))
Cint(nz(Field,0))
iif(isnull(Field),0,Field)
I feel like I'm going in circles because I'm dealing with Nulls and converting and it should work....I've done it a 1000 times?