Results 1 to 5 of 5
  1. #1
    ZachAtaiyan is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    41

    Creating an "Insert Record" Button

    Good Morning Everyone!



    Now before everyone jumps on me for this, I do know the difference between a spreadsheet and database table. However, for all practical purposes, I need your assistance in tackling another issue...

    Currently, I have a form that will be used to do component inspections on Tablet PC's. The plan is to fill in the forms with as much data as possible before arriving on site to reduce the time required to do these inspections. This includes the creation of records that we expect to be on site before we arrive. One of the concerns is that on some inspections, they may have not anticipated a component (Record) when they were doing the pre-entry, and will want to group this component (record) with the similar records. However, if a new record is created, by default it is added as the last record in the table. I am looking for a way to "Insert" That record among the similar records so when the report is published, everything is grouped properly.

    From my search of existing forum posts, I see that the data can be queried to sort things how I would like, but I would need to define a new field to act as a primary key.

    Are there any other ways to do this that you guys can think of?

    Thanks in advance!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    It doesnt matter if the record is added 1st, last , or in the middle, ....you sort them how you want. Throw it in the toy box, then sort by key, or name, date, etc.
    Usually NOT by primary key # if its just a counter.
    Counters can only show the order it was added.

  3. #3
    ZachAtaiyan is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    41
    Does anyone have a good sort procedure if I wanted to sort by FS, FA, LS categories? For instance each file would be associated with an ID of one of these tags; FS003, FS004, FA005, LS001, FS202

  4. #4
    ZachAtaiyan is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    41
    Would the way you sort something appear in the order on the form? for example, if I have 70 records, and I need to add one and have it go between 23 and 24, I can create a sort order that will take care of it, but will it show up that way on the form?

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    If you want to sort by categories, need a field with the values (can be calculated).

    Don't rely on sort saved with table. Set filter/sort criteria in query or properties of form/report.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Creating a "Submit" button
    By athyeh in forum Forms
    Replies: 4
    Last Post: 07-01-2013, 03:30 PM
  2. Replies: 11
    Last Post: 03-29-2012, 02:32 PM
  3. Replies: 2
    Last Post: 02-21-2012, 01:35 PM
  4. Replies: 0
    Last Post: 01-11-2012, 12:34 PM
  5. Replies: 3
    Last Post: 02-23-2010, 06:32 PM

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