Hi,
I'm trying to produce an address field concatenated from a series of other address fields. I need each concatenated element to be padded with spaces to 40 characters. So I've tried this expression:
But i keep getting a 'Data Type mismatch in Criteria expression' error. I can't figure out why because they are all text fields and none of them are greater than 40 characters wide..
Can anybody help?
I'm trying to produce an address field concatenated from a series of other address fields. I need each concatenated element to be padded with spaces to 40 characters. So I've tried this expression:
Code:
RP Address: [S17 active space]![PRMS] & Space(40-Len([S17 active space]![PRMS])) & [S17 active space]![ST1] & Space(40-Len([S17 active space]![ST1])) & [S17 active space]![ST2] & Space(40-Len([S17 active space]![ST2])) & [S17 active space]![DIS] & Space(40-Len([S17 active space]![DIS])) & [S17 active space]![TOWN] & Space(40-Len([S17 active space]![TOWN])) & [S17 active space]![PCDE] & Space(40-Len([S17 active space]![PCDE])) & [S17 active space]!
[CTRY] & Space(40-Len([S17 active space]![CTRY]))
But i keep getting a 'Data Type mismatch in Criteria expression' error. I can't figure out why because they are all text fields and none of them are greater than 40 characters wide..
Can anybody help?