I'm not sure is this is really possible. I can do this manually using Excel and pasting the results back into Access, but would love to have a proper solution.
I have an Access database of (scuba) dives. I create a report of the data using Crystal. I have created a whole new table, to facilitate this.
The table provided is basically, two main fields
DIVE_NO (numeric, key) and PROFILE (string)
1 000000123012031023012345
2 000323050345034503405000454
3 003405034503405034050345030450345
Now the profile is basically a 12 charachter string (always numbers) for every 20 seconds. So an hour long dive would have 12*3*60 charachters in it. The profile string can be of any length, but still a factor of 12
The information I'd like to extract is (in Excel)
MID(Profile,1,5)
MID(Profile,13,5)
MID(Profile,25,5)
MID(Profile,37,5)
MID(Profile,49,5)
i.e the depth is 5 charachters long, found 12 charachters apart.
So from the original table, would it be possible, automagically, to create
KEY DIVE_NO TIME DEPTH
1 1 0 00000
2 1 20 00010
3 1 40 00240
4 1 60 00570
etc..
5 2 0 00000
6 2 20 00024
7 2 40 00340
8 2 60 00678
9 2 80 00890
10 2 100 01200
11 2 120 01800
etc...
Hope this is possible. I don't really know where to begin.
I have an Access database of (scuba) dives. I create a report of the data using Crystal. I have created a whole new table, to facilitate this.
The table provided is basically, two main fields
DIVE_NO (numeric, key) and PROFILE (string)
1 000000123012031023012345
2 000323050345034503405000454
3 003405034503405034050345030450345
Now the profile is basically a 12 charachter string (always numbers) for every 20 seconds. So an hour long dive would have 12*3*60 charachters in it. The profile string can be of any length, but still a factor of 12
The information I'd like to extract is (in Excel)
MID(Profile,1,5)
MID(Profile,13,5)
MID(Profile,25,5)
MID(Profile,37,5)
MID(Profile,49,5)
i.e the depth is 5 charachters long, found 12 charachters apart.
So from the original table, would it be possible, automagically, to create
KEY DIVE_NO TIME DEPTH
1 1 0 00000
2 1 20 00010
3 1 40 00240
4 1 60 00570
etc..
5 2 0 00000
6 2 20 00024
7 2 40 00340
8 2 60 00678
9 2 80 00890
10 2 100 01200
11 2 120 01800
etc...
Hope this is possible. I don't really know where to begin.