H
Hydra
Is there a way to make an index field that is numbered as in legal paragraphs?
ie
A1a
A2a
A2b
B1a
B2b
B2c
B3a
B4a
C1a
Etc.?
ie
A1a
A2a
A2b
B1a
B2b
B2c
B3a
B4a
C1a
Etc.?
vanderghast said:If there is a dot between the parts, that may help, but I still don't see
how 4.3.2 may become B.2.b
Note that instead of entering 3.1.5, would it not be as easy to enter 3
[tab] 1 [tab] 5 in a form (where [tab] would move the cursor to the next
text edit control ) ? It is much easier to work with data which is already
'ready to use' than with data we have to 'spot the dots, then brake in parts
to get the individual parts'. Entering each part in its own control CAN
simplify greatly the required SQL statements you could have to use further
on. A database works well when the data is EASILY available, not when data
is strangely encoded with a schema that YOU know but that the database is
totally unaware of.
Vanderghast, Access MVP
Hydra said:The format is AA-ZZ.1-99.aa-zz
The way this works is that I have three linked tables: Grandparent,parent,
and child. Each is one to many with referential integrity. The user can
downselect at each level to constrct a stream of related phrases, which
then
produces a report.
The user may add phrases if the library is incomplete for his purposes.
therfore these tables are autonumbering.
The user might select
3.1.5
3.1.7
4.2.1
4.3.1
4.3.2
And produce a report numbered this way.
The report needs to be numbered, in this case:
A.1.a
A.1.b
B.1.a
B.2.a
B.2.b
Fun huh? This wasn't my idea.
I'm assumming I will have to do some kind of lookup table, processed after
the downselect.
Hydra
vanderghast said:If there is a dot between the parts, that may help, but I still don't see
how 4.3.2 may become B.2.b
Note that instead of entering 3.1.5, would it not be as easy to enter 3
[tab] 1 [tab] 5 in a form (where [tab] would move the cursor to the next
text edit control ) ? It is much easier to work with data which is already
'ready to use' than with data we have to 'spot the dots, then brake in parts
to get the individual parts'. Entering each part in its own control CAN
simplify greatly the required SQL statements you could have to use further
on. A database works well when the data is EASILY available, not when data
is strangely encoded with a schema that YOU know but that the database is
totally unaware of.
Vanderghast, Access MVP
Hydra said:The format is AA-ZZ.1-99.aa-zz
The way this works is that I have three linked tables: Grandparent,parent,
and child. Each is one to many with referential integrity. The user can
downselect at each level to constrct a stream of related phrases, which
then
produces a report.
The user may add phrases if the library is incomplete for his purposes.
therfore these tables are autonumbering.
The user might select
3.1.5
3.1.7
4.2.1
4.3.1
4.3.2
And produce a report numbered this way.
The report needs to be numbered, in this case:
A.1.a
A.1.b
B.1.a
B.2.a
B.2.b
Fun huh? This wasn't my idea.
I'm assumming I will have to do some kind of lookup table, processed after
the downselect.
Hydra
John Spencer said:I might try something like the following in a report. One problem is if you
need to go beyond single letters. In that case you might need to write a VBA
function to take the three values from the controls and generate the needed
string. I won't attempt that since I don't know if the next value after Z is
AA, Aa, a, or AB or even something else.
Group on Grandparent,parent, and sort by Child
Create group headers for GrandParent and parent
Add a control to Grandparent group header
Name: txtTopLevel
Control Source: =1
Running Sum: Over All
Add a control to Parent group header
Name: txtLevel2
Control Source: =1
Running Sum: Over Group
Add a control to the Child (detail?) level
Name: txtLevel3
Control Source: =1
Running Sum: Over Group
In the detail section add one more control
Name: txtParaID
Control Source: Chr(TxtTopLevel + 64) & "." & [txtlevel2] & "." &
CHr([txtLevel3 +64)
John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
.The format is AA-ZZ.1-99.aa-zz
The way this works is that I have three linked tables: Grandparent,parent,
and child. Each is one to many with referential integrity. The user can
downselect at each level to constrct a stream of related phrases, which then
produces a report.
The user may add phrases if the library is incomplete for his purposes.
therfore these tables are autonumbering.
The user might select
3.1.5
3.1.7
4.2.1
4.3.1
4.3.2
And produce a report numbered this way.
The report needs to be numbered, in this case:
A.1.a
A.1.b
B.1.a
B.2.a
B.2.b
Fun huh? This wasn't my idea.
I'm assumming I will have to do some kind of lookup table, processed after
the downselect.
Hydra