Forum Moderators: open
Cheers
Splitting postcodes into two parts, trimming whitespaces, change texts to proper case.
I used left, right, and I think instr, in conjuntion with the UPDATE.
I diddnt use replace but I bet that will do what you need:
Update tablename
SET fieldname= replace(fieldname,'*','')
or
Update tablename
SET fieldname= left(fieldname, len(fieldname)-1)
where field1name like '**'
// * is an access wilcard meaning start of string
[edited by: aspdaddy at 10:01 am (utc) on Sep. 4, 2003]
If the characters are truly stray characters that aren't used anywhere else in the field/column, that works fine.
<add> bugger. just realised you said asterisks - they're a wildcard in access, so be careful or you'll 'find' the whole field.
[edited by: deejay at 10:03 am (utc) on Sep. 4, 2003]
I have two felds that need combining, only trouble is that where one has null values the other has values and vise versa.
Is this about the right lines.
Append query of field1 + feild2 into newfield? I want to avoid overwriting full fields with empty values.
Cheers