R
RJF
I import a fixed txt file into access using this spec:
FieldName Data Type Start Width
Field1 Memo 1 3000
Example of how it comes in.
"468433","Microsoft Word - Preliminary General Project Requirements, Brown
CAC, 4-7-09 Update.doc","SBarbary","\\172.20.113.93",
After the import, I need to remove all commas that are located between the
quotes.
So I need an update query that changes the above line to:
"468433","Microsoft Word - Preliminary General Project Requirements Brown
CAC 4-7-09 Update.doc","SBarbary","\\172.20.113.93",
I think I got the following from this forum:
Left([field1],InStr(1,[field1],Chr(34))-1) &
replace(Mid([field1],InStr(1,[field1],Chr(34)),InStrrev([field1],Chr(34))-7),","," ") & Mid([field1],InStrrev([field1],Chr(34))+1,1000)
And I thought it was working, but it’s not. It removes all the commas.
Any ideas on what I'm doing wrong? Any help will be greatly appreciated.
Thank you.
FieldName Data Type Start Width
Field1 Memo 1 3000
Example of how it comes in.
"468433","Microsoft Word - Preliminary General Project Requirements, Brown
CAC, 4-7-09 Update.doc","SBarbary","\\172.20.113.93",
After the import, I need to remove all commas that are located between the
quotes.
So I need an update query that changes the above line to:
"468433","Microsoft Word - Preliminary General Project Requirements Brown
CAC 4-7-09 Update.doc","SBarbary","\\172.20.113.93",
I think I got the following from this forum:
Left([field1],InStr(1,[field1],Chr(34))-1) &
replace(Mid([field1],InStr(1,[field1],Chr(34)),InStrrev([field1],Chr(34))-7),","," ") & Mid([field1],InStrrev([field1],Chr(34))+1,1000)
And I thought it was working, but it’s not. It removes all the commas.
Any ideas on what I'm doing wrong? Any help will be greatly appreciated.
Thank you.