Hi,
I need help renumbering my records. I'm new to Access so I'll explain what
I'm doing and if there is a better way please let me know.
From a form the user can either choose to create a full set of tasks or a
reduced set of tasks. These tasks show up on another form called "traveler".
I made two tables. One table has the full tasks (80 records) and the other
has the reduced tasks (30 records) But they aren't really records per se
they're more like 5 word instructions that tell someone what to do. Anyway,
when they click the full button I run an append query that appends the full
tasks table to another table that is the subform of the traveler form. and
the same if they hit the reduced button. I also add the current record ID
which ties those tasks to the record they were creating. These tasks however
aren't set in stone but just a starting point. The user needs to be able to
add and delete the tasks and they need to stay in a specific order.
How could I add a task (record) in the middle of the table? I'm not using
an autonumber for the full or reduced tasks table. And the tasks aren't
unique but repeated several times. So I was thinking that I could maybe pop
up a texbox that lets them input what they want to add and then it would ask
what record number and then I could just renumber everything after that
number and then sort. To the user it would look like they inserted a task.
Thank you very much
|
|
0
|
|
|
|
Reply
|
Utf
|
3/9/2010 10:14:02 PM |
|
On Tue, 9 Mar 2010 14:14:02 -0800, Jwil <Jwil@discussions.microsoft.com>
wrote:
>Hi,
>
>I need help renumbering my records. I'm new to Access so I'll explain what
>I'm doing and if there is a better way please let me know.
>
>From a form the user can either choose to create a full set of tasks or a
>reduced set of tasks. These tasks show up on another form called "traveler".
>I made two tables. One table has the full tasks (80 records) and the other
>has the reduced tasks (30 records) But they aren't really records per se
>they're more like 5 word instructions that tell someone what to do. Anyway,
>when they click the full button I run an append query that appends the full
>tasks table to another table that is the subform of the traveler form. and
>the same if they hit the reduced button. I also add the current record ID
>which ties those tasks to the record they were creating. These tasks however
>aren't set in stone but just a starting point. The user needs to be able to
>add and delete the tasks and they need to stay in a specific order.
>
>How could I add a task (record) in the middle of the table? I'm not using
>an autonumber for the full or reduced tasks table. And the tasks aren't
>unique but repeated several times. So I was thinking that I could maybe pop
>up a texbox that lets them input what they want to add and then it would ask
>what record number and then I could just renumber everything after that
>number and then sort. To the user it would look like they inserted a task.
>
>Thank you very much
Tables *have no order*. They should be viewed as an unordered bucket of
records.
If you want to present the tasks in some particular order, then you must - no
option! - include a field in the table to specify that order, and use a query
sorting by that field to present the records to the user. There simply is no
"record number" concept in the table.
If you want flexibility in specifying a sort order, you can use either a Long
Integer ID field with big gaps - start with 16, 32, 48, 64, 80 as the records,
and insert records 24, then 20, then 18, then 17 to "fill in the cracks"; or
for nearly unlimited flexibility, use a Double, which will let you insert
trillions of records between 1.0 and 2.0.
--
John W. Vinson [MVP]
|
|
0
|
|
|
|
Reply
|
John
|
3/9/2010 10:59:36 PM
|
|
> Tables *have no order*. They should be viewed as an unordered bucket of
> records.
>
> If you want to present the tasks in some particular order, then you must - no
> option! - include a field in the table to specify that order, and use a query
> sorting by that field to present the records to the user. There simply is no
> "record number" concept in the table.
>
> If you want flexibility in specifying a sort order, you can use either a Long
> Integer ID field with big gaps - start with 16, 32, 48, 64, 80 as the records,
> and insert records 24, then 20, then 18, then 17 to "fill in the cracks"; or
> for nearly unlimited flexibility, use a Double, which will let you insert
> trillions of records between 1.0 and 2.0.
>
John,
I'm not using an autonumber but I am using a field to number the tasks.
these are the numbers I want to re-order. There isn't code to just take a 5
and make it a 6 and a 6 and make it a 7 and so on...? I'm not talking about
records but the ID field I created.
|
|
0
|
|
|
|
Reply
|
Utf
|
3/10/2010 12:56:01 AM
|
|
On Tue, 9 Mar 2010 16:56:01 -0800, Jwil <Jwil@discussions.microsoft.com>
wrote:
>I'm not using an autonumber but I am using a field to number the tasks.
>these are the numbers I want to re-order. There isn't code to just take a 5
>and make it a 6 and a 6 and make it a 7 and so on...? I'm not talking about
>records but the ID field I created.
It can be done but it would be inefficient and pretty complicated. I certainly
would not do it on the primary key of a table if it's involved in any
relationships!
I'm not up to writing an update query to do this off the top of my head; I'll
think about it and post back. If anyone has code in their pocket to do so,
please jump in!
--
John W. Vinson [MVP]
|
|
0
|
|
|
|
Reply
|
John
|
3/10/2010 1:35:14 AM
|
|
"John W. Vinson" wrote:
> On Tue, 9 Mar 2010 16:56:01 -0800, Jwil <Jwil@discussions.microsoft.com>
> wrote:
>
> >I'm not using an autonumber but I am using a field to number the tasks.
> >these are the numbers I want to re-order. There isn't code to just take a 5
> >and make it a 6 and a 6 and make it a 7 and so on...? I'm not talking about
> >records but the ID field I created.
>
> It can be done but it would be inefficient and pretty complicated. I certainly
> would not do it on the primary key of a table if it's involved in any
> relationships!
>
> I'm not up to writing an update query to do this off the top of my head; I'll
> think about it and post back. If anyone has code in their pocket to do so,
> please jump in!
> --
>
> John W. Vinson [MVP]
> .
John,
Thank you. Should I go about this a different way?
I can also copy all the records below the "insert" (not my ID field just the
tasks field). I can then paste them one record down and then delete the
repeated task. Then I have a "blank" space for someone to input a new task.
The ID field stayed the same so everything is in the right order. Could that
maybe be automated? The table that has the tasks aren't in any
relationships. Their only purpose is to house the tasks so that I can append
them to another table on the click of a button.
|
|
0
|
|
|
|
Reply
|
Utf
|
3/10/2010 2:50:01 AM
|
|
On Tue, 9 Mar 2010 18:50:01 -0800, Jwil <Jwil@discussions.microsoft.com>
wrote:
>
>Thank you. Should I go about this a different way?
>I can also copy all the records below the "insert" (not my ID field just the
>tasks field). I can then paste them one record down and then delete the
>repeated task. Then I have a "blank" space for someone to input a new task.
>The ID field stayed the same so everything is in the right order. Could that
>maybe be automated? The table that has the tasks aren't in any
>relationships. Their only purpose is to house the tasks so that I can append
>them to another table on the click of a button.
If there is a specific desired order to the tasks - and ESPECIALLY if that
order varies from user to user - then you must have a table with fields for
the TaskID and a number field which can be used to specify the desired order.
You should emphatically NOT count on putting records into a table defining
that order. It *might*, just often enough to fool you into thinking that it
will work - but it won't, not reliably.
--
John W. Vinson [MVP]
|
|
0
|
|
|
|
Reply
|
John
|
3/10/2010 3:57:53 AM
|
|
"John W. Vinson" wrote:
> On Tue, 9 Mar 2010 18:50:01 -0800, Jwil <Jwil@discussions.microsoft.com>
> wrote:
>
> If there is a specific desired order to the tasks - and ESPECIALLY if that
> order varies from user to user - then you must have a table with fields for
> the TaskID and a number field which can be used to specify the desired order.
> You should emphatically NOT count on putting records into a table defining
> that order. It *might*, just often enough to fool you into thinking that it
> will work - but it won't, not reliably.
> --
>
> John W. Vinson [MVP]
> .
Ok. Is there a completely different way I can go about this? I'm not at
all married to any of my ideas.
Thank you
|
|
0
|
|
|
|
Reply
|
Utf
|
3/10/2010 7:40:01 PM
|
|
"Jwil" <Jwil@discussions.microsoft.com> wrote in message
news:9698BCB7-D8FE-43E8-AC1F-B3C5B3499075@microsoft.com...
> Hi,
>
> I need help renumbering my records. I'm new to Access so I'll explain
> what
> I'm doing and if there is a better way please let me know.
>
> From a form the user can either choose to create a full set of tasks or a
> reduced set of tasks. These tasks show up on another form called
> "traveler".
> I made two tables. One table has the full tasks (80 records) and the other
> has the reduced tasks (30 records) But they aren't really records per se
> they're more like 5 word instructions that tell someone what to do.
> Anyway,
> when they click the full button I run an append query that appends the
> full
> tasks table to another table that is the subform of the traveler form. and
> the same if they hit the reduced button. I also add the current record ID
> which ties those tasks to the record they were creating. These tasks
> however
> aren't set in stone but just a starting point. The user needs to be able
> to
> add and delete the tasks and they need to stay in a specific order.
>
> How could I add a task (record) in the middle of the table? I'm not using
> an autonumber for the full or reduced tasks table. And the tasks aren't
> unique but repeated several times. So I was thinking that I could maybe
> pop
> up a texbox that lets them input what they want to add and then it would
> ask
> what record number and then I could just renumber everything after that
> number and then sort. To the user it would look like they inserted a
> task.
>
> Thank you very much
|
|
0
|
|
|
|
Reply
|
De
|
3/13/2010 5:33:06 PM
|
|
jkjkjkj
"Jwil" <Jwil@discussions.microsoft.com> a écrit dans le message de groupe de
discussion : 9698BCB7-D8FE-43E8-AC1F-B3C5B3499075@microsoft.com...
> Hi,
>
> I need help renumbering my records. I'm new to Access so I'll explain
> what
> I'm doing and if there is a better way please let me know.
>
> From a form the user can either choose to create a full set of tasks or a
> reduced set of tasks. These tasks show up on another form called
> "traveler".
> I made two tables. One table has the full tasks (80 records) and the other
> has the reduced tasks (30 records) But they aren't really records per se
> they're more like 5 word instructions that tell someone what to do.
> Anyway,
> when they click the full button I run an append query that appends the
> full
> tasks table to another table that is the subform of the traveler form. and
> the same if they hit the reduced button. I also add the current record ID
> which ties those tasks to the record they were creating. These tasks
> however
> aren't set in stone but just a starting point. The user needs to be able
> to
> add and delete the tasks and they need to stay in a specific order.
>
> How could I add a task (record) in the middle of the table? I'm not using
> an autonumber for the full or reduced tasks table. And the tasks aren't
> unique but repeated several times. So I was thinking that I could maybe
> pop
> up a texbox that lets them input what they want to add and then it would
> ask
> what record number and then I could just renumber everything after that
> number and then sort. To the user it would look like they inserted a
> task.
>
> Thank you very much
|
|
0
|
|
|
|
Reply
|
joelgeraldine
|
3/17/2010 1:48:04 PM
|
|
|
8 Replies
194 Views
(page loaded in 0.169 seconds)
Similiar Articles: Renumbering footnotes - microsoft.public.word.newusersIf these are bona fide "footnotes" created using the Insert | Reference ... It's true that new footnotes could have been inserted with automatic renumbering. Add Table Captions to Document Before Adding Tables? - microsoft ...When writing a document we almost always insert tables and figures as the very ... locked by the time a table is inserted, so there won't be worries about renumbering ... microsoft.public.access - page 42This is page 42 of the microsoft.public.access group which contains 16792 articles. Power Point - Renumbering Slides In Several Places in Same PPT ...Power Point - Renumbering Slides In Several Places in Same PPT ... Microsoft, It is ... of the small power point ... version of PPT you're using because tools like insert ... Renumber footnotes - microsoft.public.word.docmanagement ...Renumbering footnotes - microsoft.public.word.newusers I'm using Microsoft Word 2002 and ... Fair enough, though there's a link to a cautionary tale wrt insert pages at http ... Page Numbers Different Odd and Even Pages - microsoft.public.word ...I understand how to insert the page numbers & > format them for different pages, but ... Word assumes you will be duplexing and > will not let you start renumbering with 1 ... How can I use the e.g. spin control button on a chart in powerpoi ...PPT 07 from PPT03 imported slides doe not 'insert' slide number Utf 1 217 ... Power Point - Renumbering Slides In Several Places in Same PPT Utf 0 349 How do I set up an automatic invoice number in Excel 2007 ...In Excel 2000 I > was able to insert a unique invoice number automatically by ... Auto Renumbering in Excel - microsoft.public.excel.misc ... How do I set up an automatic ... Page Breaks Start Each Section on Odd Page Number - microsoft ...Cannot get pagination to be different on the first page of each ..... start of the next chapter, Insert a Section Break (Next > Page ... section break before each ... Sorting rows out of order after all rows are numbered in sequence ...> Without manually cutting and inserting the errant lines, I don't know how > else to ... After sorting & renumbering Project tasks they revert to old ... After sorting ... Insert, delete, or edit footnotes and endnotes - Word - Office.comWord 2007 makes adding footnotes and endnotes simple with automatic numbering. Here's how to insert, delete or change a footnote. Renumbering requirements in IBM Rational RequisiteProRenumbering replaces the tags of the affected requirements. To implement this ... All subsequent requirements will be renumbered. Listing 2. Inserting requirements How to Insert a File into a Word Document | eHow.comIf you need to place the information from an existing file into your Word document, you have a few options. You could retype the information from the second file. Or ... Inserting Cells, Rows, or Columns in Excel 2010 - For DummiesIf you need to add new data within an existing Excel 2010 worksheet , you can insert new cells , columns, or rows in the worksheet rather than going through all the Add an appendix to your document - Word - Office.comIn Word 2003 or 2002, point to Reference on the Insert menu, and then click Index and Tables. In Word 2000, click Index and Tables on the Insert menu. 7/25/2012 5:58:23 AM
|