-
1
- #1
MarkRobinson
Programmer
Well, I've been working on this for days, unable to figure out the program logic. Maybe I'm getting old.
I imported my message board into access. I've got 32,000 messages each identified with a
MSG#: 24 - Number of this message
PREVIOUS#: 23 - If any. Empty means top of thread
NEXT#: 27 28 39 42 - Replies to this message
MSGINFO: Test of message, etc
I want to make a single page of each thread and I don't see a good method. Following the tree down with unlimited branches seems like a very subtle loop and, like a squirrel with a nut, I'm getting lost in the branches.
1) Get all Top Threads (PREVIOUS is blank)
2) For Each Top Thread
3) Get First NEXT#
4) Do until NEXT# is blank
5) For Each NEXT#
6) Do Until NEXT# is blank
7) How far down the rabbit hole do I want to go?
So I'm looking for logic - or a suggested path. Some ideas I've beem mulling...
Create a separate table for each thread.
Create a field in each message that identifies its thread level.
Create a separate one-to-many table with MSG# and NEXT#
Advice will be appreciated!
Mark Robinson
I imported my message board into access. I've got 32,000 messages each identified with a
MSG#: 24 - Number of this message
PREVIOUS#: 23 - If any. Empty means top of thread
NEXT#: 27 28 39 42 - Replies to this message
MSGINFO: Test of message, etc
I want to make a single page of each thread and I don't see a good method. Following the tree down with unlimited branches seems like a very subtle loop and, like a squirrel with a nut, I'm getting lost in the branches.
1) Get all Top Threads (PREVIOUS is blank)
2) For Each Top Thread
3) Get First NEXT#
4) Do until NEXT# is blank
5) For Each NEXT#
6) Do Until NEXT# is blank
7) How far down the rabbit hole do I want to go?
So I'm looking for logic - or a suggested path. Some ideas I've beem mulling...
Create a separate table for each thread.
Create a field in each message that identifies its thread level.
Create a separate one-to-many table with MSG# and NEXT#
Advice will be appreciated!
Mark Robinson