If this is a one time effort, you can use some update queries to replace each
occurence of two semi-colons with one semi-colon.
What version of Access are you using? If Access 2000 with service packs or
later versions, there is a replace function.
First, move the existing value over
UPDATE YourTable
Set CombModule1 = CombModule
Now, start cleaning it up
UPDATE YourTable
Set CombModule1 = Replace(CombModule1,";;";")
WHERE CombModule1 Like "*;;*"
Repeat above until no records get updated, then you can strip off the leading semi-colon.
UPDATE YourTable
Set CombModule1 = Mid(CombModule1,2)
WHERE CombModule1 Like ";*"
You could also write a VBA function to do each entry in one action. This would
probably be the better solution, if you need to do this repeatedly. Using the
UNTESTED VBA function below.
UPDATE YourTable
Set CombModule1 = StripDoubles(CombModule)
UNTESTED AirCode follows.
'======= Paste the following into a module and save the module with
'======= some name other than StripDoubles
Function StripDoubles (strIn)
Dim strOut as String
If Len(strIn & vbnullstring) = 0 then
StripDoubles = strIN
Else
For I = 1 to Len(strIn)-1
If Mid(strIn,I) <> ";" Then
strOut = strOut & Mid(strIn,I)
Elseif Mid(strIn,I+1) = ";" Then
'Skip multiple semicolons
Else
strOut=StrOut & Mid(strIn,I)
End if
Next I
If Left(StrOut,1) =";" then
StrOut= Mid(strOut,2)
End If
StripDoubles = strOut
End If
End Function