G
Guest
Hello all. I have a question that's been ragging my brains for a while.
I am working on a project where I am scanning books with numbered pages.
The books are from 1941 to present. Each year has a certain number of books
and each book has 500 pages each although there are some books have 250
pages. The pages are numbered consecutively from 1 to the last page number
generated for that year. Most years have from 90,000 pages to 120,000 pages
all divided into books of mostly 500 pages each.
I did an inventory of the books (so far I have inventoried about 28,000
books) and created the following table:
BookID
BookNum (each book will be numbered from 1 to whatever the last number book
we have)
BeginingPageNum (the begining page number in that book)
EndingPageNum (the ending page number in that book)
I created another table that I intend to generate the page numbers for all
of the books. The table looks like this:
PageID
BookNum
PageNum
What I would like to do is create a procedure or something that will read
the book number, first page number and last page number from each entry in
the first table and automatically populate the second table with the book
number and the individual pages that should be in that book.
For example, book one will have have a page count of 500 pages starting at 1
and going to 500. How can I then have the book number and a page number from
1 to 500 inserted into the second table? This procedure should run for all
of the books and fill the table with the book number and associated pages.
After the procedure is run, I would like to open a form for the book with a
subform for the pages (I will add additional fields).
Any help you provide will be greatly appreciated. I'm thinking that it's
easy to autopopulate a table but nothing I've tried seem to work.
I am working on a project where I am scanning books with numbered pages.
The books are from 1941 to present. Each year has a certain number of books
and each book has 500 pages each although there are some books have 250
pages. The pages are numbered consecutively from 1 to the last page number
generated for that year. Most years have from 90,000 pages to 120,000 pages
all divided into books of mostly 500 pages each.
I did an inventory of the books (so far I have inventoried about 28,000
books) and created the following table:
BookID
BookNum (each book will be numbered from 1 to whatever the last number book
we have)
BeginingPageNum (the begining page number in that book)
EndingPageNum (the ending page number in that book)
I created another table that I intend to generate the page numbers for all
of the books. The table looks like this:
PageID
BookNum
PageNum
What I would like to do is create a procedure or something that will read
the book number, first page number and last page number from each entry in
the first table and automatically populate the second table with the book
number and the individual pages that should be in that book.
For example, book one will have have a page count of 500 pages starting at 1
and going to 500. How can I then have the book number and a page number from
1 to 500 inserted into the second table? This procedure should run for all
of the books and fill the table with the book number and associated pages.
After the procedure is run, I would like to open a form for the book with a
subform for the pages (I will add additional fields).
Any help you provide will be greatly appreciated. I'm thinking that it's
easy to autopopulate a table but nothing I've tried seem to work.