philfer
02-09-2010, 11:44 AM
Hi,
I am importing a text file into a table.
The table has one field as the text file is a series of strings.
I then use Left and Mid on the string to split it up into the fields it includes in the string.
I then (in a query) try to join one of these fields (maturity date) to a field in another table but it wont let me run the query as it says "join - type mismatch".
When I split the string I cast it as a date with CDate(Mid......
And in the other table the field is formatted as a date.
Does anyone knwo why I am still getting this error?
I have formatted them both as short date to try to ensure they are the same.
I then tried to the same thing with the "Amount" field. I used the Value function and tried to cast it as a double and as an int separately. I also used the properties sheet to set the format type and decimal places.
In the other table it was already a number field and I set it to the same format and decimal places. But it still wont let me join it even though the number look the same to me
Any help would be appreciated as its driving me up the wall!!!!!
Cheers
Phil
I am importing a text file into a table.
The table has one field as the text file is a series of strings.
I then use Left and Mid on the string to split it up into the fields it includes in the string.
I then (in a query) try to join one of these fields (maturity date) to a field in another table but it wont let me run the query as it says "join - type mismatch".
When I split the string I cast it as a date with CDate(Mid......
And in the other table the field is formatted as a date.
Does anyone knwo why I am still getting this error?
I have formatted them both as short date to try to ensure they are the same.
I then tried to the same thing with the "Amount" field. I used the Value function and tried to cast it as a double and as an int separately. I also used the properties sheet to set the format type and decimal places.
In the other table it was already a number field and I set it to the same format and decimal places. But it still wont let me join it even though the number look the same to me
Any help would be appreciated as its driving me up the wall!!!!!
Cheers
Phil