Results 1 to 6 of 6
  1. #1
    Steven1968 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2013
    Location
    Syracuse, New York
    Posts
    6

    New Record not found when using the scroll feature

    I have a database where we track each employees position assignments each day and where they sat and for how many hours. To enter the information we open the "position" form which opens the form in add mode, the date is prefilled, enter the employees name which is linked to an employee table, then there are 24 fields where we enter a number (of hours) that person sat at a particular position (ie north zone, county fire, sick, etc) there is an action button to press that takes you to the next record. Once you are all done press the action button returning you to the main menu. Here is the kicker if I go back in to say add another employee that I mistakenly left out I cannot see any of the records I just entered, When I say I can't see them means I have opened the "Positions" form like I was entering a new record and using the record navigation arrows at the bottom of the form with the arrows I want to see record 400 or 399 and even though the record number is there what I just entered is not what I see. What I might see is an employee that was entered 8 hours ago? To further the problem it does not happen all of the time just sporadically? But if I go to the table and look at the datasheet view all of the records are there safe and sound?

    I have tried many different things to figure this out but have come to my wits end. Is there a better method for entering this information? If so I would gladly make any modifications needed.



    Thanks for anyone willing to offer advice.

  2. #2
    Steven1968 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2013
    Location
    Syracuse, New York
    Posts
    6

    One other thing

    I forgot to add that although the records are in the table the sort order might have something to do with it because like I said if I go into the table and sort by date lo and behold there they are but if you try to just go backwards using the record navigation arrows they are in a different order from when you put them in.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    What is the record source of your form? If itis a table, then any order is possible. Relational databases do not necessarily store data in any specific order. If you want your records in a particular order, then use a query on your table along these lines.

    Select your field name1, your field name 2,.....from YourTableNameGoesHere
    Order by RecordDate (whatever your date field is) Ascending

    Note again: There is no guaranteed order to records in a table. Use an Order By select query to establish a desired order.

  4. #4
    Steven1968 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2013
    Location
    Syracuse, New York
    Posts
    6
    Quote Originally Posted by orange View Post
    What is the record source of your form? If itis a table, then any order is possible. Relational databases do not necessarily store data in any specific order. If you want your records in a particular order, then use a query on your table along these lines.

    Select your field name1, your field name 2,.....from YourTableNameGoesHere
    Order by RecordDate (whatever your date field is) Ascending

    Note again: There is no guaranteed order to records in a table. Use an Order By select query to establish a desired order.
    Yes the record source is indeed a table, and thank you for the additional information I will give that a try to see if that works.

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by Steven1968 View Post

    ...To enter the information we open the "position" form which opens the form in add mode...
    AddMode is just like having Data Entry set to 'Yes;' you can only add New Records, you cannot view/edit existing Records, and the Records you entered during your last session are no longer 'new.'

    Linq ;0)>

  6. #6
    Steven1968 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2013
    Location
    Syracuse, New York
    Posts
    6

    Thumbs up

    Quote Originally Posted by Missinglinq View Post
    AddMode is just like having Data Entry set to 'Yes;' you can only add New Records, you cannot view/edit existing Records, and the Records you entered during your last session are no longer 'new.'

    Linq ;0)>
    Thank you to the first poster you jump started my thinking and I have solved the issue. I opened the forms properties and placed the following parameters in the order by field: [tblPosition].[Date], [tblPosition].[TimeModified] so now when the form loads the records are ordered first by date then by the time it was modified.

    Thank you.

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

Similar Threads

  1. Replies: 4
    Last Post: 11-27-2012, 01:12 AM
  2. go to next record by scroll wheel
    By smahdih in forum Access
    Replies: 3
    Last Post: 10-30-2011, 05:50 PM
  3. Help on macro to scroll one record back?
    By getholdofjoru in forum Forms
    Replies: 2
    Last Post: 06-19-2010, 03:01 PM
  4. Need help on transferring found record
    By awsmitty in forum Access
    Replies: 1
    Last Post: 01-22-2010, 09:11 PM
  5. if record not found through combo box
    By wasim_sono in forum Forms
    Replies: 2
    Last Post: 08-04-2008, 06:32 AM

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