A
Abbey Normal
Hi all.
Do I have to always refer to a field that I am using in a recordset with the
..Field Preface? I saw it once in an example, and it worked for me but not
with this new code.
I am trying to use the inStr example as shown:
'Left([YourField],InStr([YourField],"#")-1)
'strip out anything before the paren
LPlastic = Left([.Fields("Plastic")], InStr([.Fields("Plastic")], "(") - 1)
.Fields("Plastic") = LPlastic
I tried it this way too but I keep getting a type mismatch:
LPlastic = Left([Plastic], InStr([Plastic], "(") - 1)
I don't have a clue as to what is wrong. Can someone Help!
I am retrieving the data with a DAO recordset.
Do I have to always refer to a field that I am using in a recordset with the
..Field Preface? I saw it once in an example, and it worked for me but not
with this new code.
I am trying to use the inStr example as shown:
'Left([YourField],InStr([YourField],"#")-1)
'strip out anything before the paren
LPlastic = Left([.Fields("Plastic")], InStr([.Fields("Plastic")], "(") - 1)
.Fields("Plastic") = LPlastic
I tried it this way too but I keep getting a type mismatch:
LPlastic = Left([Plastic], InStr([Plastic], "(") - 1)
I don't have a clue as to what is wrong. Can someone Help!
I am retrieving the data with a DAO recordset.