D
DrEvil
Hi guys,
I feel like I'm posting something every day here.. In any case here is my
problem;
I'm importing table from Excel into Access and that works fine but I need to
do some cleaning up before I start comparing imported cases with currently
active cases, and my problems is in cleaning up cases. I would like to remove
suffix from the case if case has a suffix. Cases could be formatted like this;
22903-02296-01 , 22923-03219 , 0622-AC00441-01 , 0622-AC08276 , 22023-06047-05
What I need to do is just trim the suffix away, -01 , -02 , 03 etc. on the
end.. Hope this is clear enough. In my query I only have field called CaseNo
SELECT tblImport.CaseNo
FROM tblImport;
I'm doing same thing in form as case is scanned in (one at a time) using
this code;
Dim strlen As Integer
strlen = Len(CaseNo)
If Mid(CaseNo, (strlen - 2), 1) = "-" Then
Me.CaseNo = Left(CaseNo, strlen - 3)
But I need to do this en mass using update query (unless there is some
better way) for couple of hundred cases at time. This would be daily function.
I feel like I'm posting something every day here.. In any case here is my
problem;
I'm importing table from Excel into Access and that works fine but I need to
do some cleaning up before I start comparing imported cases with currently
active cases, and my problems is in cleaning up cases. I would like to remove
suffix from the case if case has a suffix. Cases could be formatted like this;
22903-02296-01 , 22923-03219 , 0622-AC00441-01 , 0622-AC08276 , 22023-06047-05
What I need to do is just trim the suffix away, -01 , -02 , 03 etc. on the
end.. Hope this is clear enough. In my query I only have field called CaseNo
SELECT tblImport.CaseNo
FROM tblImport;
I'm doing same thing in form as case is scanned in (one at a time) using
this code;
Dim strlen As Integer
strlen = Len(CaseNo)
If Mid(CaseNo, (strlen - 2), 1) = "-" Then
Me.CaseNo = Left(CaseNo, strlen - 3)
But I need to do this en mass using update query (unless there is some
better way) for couple of hundred cases at time. This would be daily function.