If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Replace wildcards with a space
I have a text field with all values containing an asterisk. The asterisk can
be located anywhere within the contents. I am trying to replace the asterisk with a space. I will then use TRIM to remove any spaces at the beginning of the text. I have been unable to get an update query to work. When my criteria is like "~[*}", Access says that 0 rows will be updated. When the criteria is[*], I am asked to enter a parameter value. Any assistance will be greatly appreciated. Thanks - bkh |
#2
|
|||
|
|||
Replace wildcards with a space
Barbara wrote:
I have a text field with all values containing an asterisk. The asterisk can be located anywhere within the contents. I am trying to replace the asterisk with a space. I will then use TRIM to remove any spaces at the beginning of the text. I have been unable to get an update query to work. When my criteria is like "~[*}", Access says that 0 rows will be updated. When the criteria is[*], I am asked to enter a parameter value. UPDATE table SET field = Trim(Replace(field, "*", " ")) WHERE field Like "*[*]*" -- Marsh MVP [MS Access] |
Thread Tools | |
Display Modes | |
|
|