Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Gicu's Avatar
    Gicu is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Have a look at the updated file, I created a temp table (you will need to empty it and re-populate it everytime you need to run the report). Because the autonumbers will be out-of-synch after the delete\append cycles you need to use the ranking query approach to reset them to 1,2,3,... Or you can reset the autonumber seed programmatically after you emptied the temp table, then you can use the autonumber as your TREE_NUMBER: http://allenbrowne.com/func-ADOX.html#ResetSeed



    Cheers,
    Attached Files Attached Files
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  2. #17
    Gicu's Avatar
    Gicu is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    The query would have criteria as [ENTER PLAN] the user would enter the plan, N-1234 and the report would generate.
    Yet on UtterAccess you post this:
    If I stored all of these in a separate table instead of the query I wouldnt be able to do the autogenerated method, as how we have it now, its numbered for the one plan N-1234, but this is just one record, I would need it numbered for each plan like that, so If another plan came up, N-4567, and has 1,2, 3 records,
    If you run the report one plan at the time than the last quote doesn't apply. And if you want to store all plans in the temp table then the ranking query approach would still work but you would need to reset the numbering for each plan:
    https://stackoverflow.com/questions/...rouped-ranking
    https://stackoverflow.com/questions/...roup-in-access

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #18
    pbDudley is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Mar 2017
    Location
    New Orleans
    Posts
    48
    Thanks for the responses., I will attempt this today
    The post from utteraccess, I meant what you stated, that the number would have to be reset for each plan.
    Ill see what I come up with and post the answer if I can get it, thanks

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 01-25-2016, 12:21 AM
  2. Replies: 5
    Last Post: 04-04-2014, 03:33 PM
  3. Replies: 10
    Last Post: 07-19-2013, 02:05 PM
  4. Create a query With a Calculated Field
    By Content1 in forum Queries
    Replies: 2
    Last Post: 01-05-2013, 12:46 PM
  5. Replies: 4
    Last Post: 10-01-2010, 12:06 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums