Results 1 to 11 of 11
  1. #1
    hmcquade is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    11

    New record not being added to main form

    Hi!



    I have a form called 'Requests', which lists all requests made to our organisation, the PK being 'Record ID'.
    I have another form called 'New Requests'. Users go into 'New Request' to add details of new requests made, the 'Record ID' (PK), is an autonumber which is geneated as soon as the user types on the form. Once a new request is added the 'Record ID' along with some basic details are added to the 'Requests form'. In some cases when a user is adding a new request he/she may only fill in some of the form information, to go back to at a later stage. Some of these 'incomplete' records are getting 'lost'. The 'Record ID' autonumber is increasing but the half complete records are disappearing.

    Any ideas on how i can stop this from happening?

    I have checked my code and cannot see any reason why these records should not be added to the main Requests form.

    Please help!!!!!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What are you doing to update the "Requests" RecordSource from the "New Requests" form?

  3. #3
    hmcquade is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    11
    Both forms are looking at the same table. The relationships were created at table level and forced to cascade through.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are both forms open at the same time? Have you turned off Warnings? The forms should be using queries of the table rather than the tables directly.

  5. #5
    hmcquade is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    11
    No both forms are not open at the same time. I dont think i have turned off warnings, i dont know how to do that even!

    The 'New Request' form is based on the table. I built the form from the table. Request form is just a seperate form that looks at the same table.

    If users type in a significant amount of information, i.e. populate more fields, the record adds itself to the request list no problem. I dont think its a relationship problem here. Its as if users have to reach a certain field before the record will count, problem is i dont know where that field is? Or what function makes it do this.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Access *will* save any "Dirty" records regardless of how you exit the form unless you take extraordinary steps to prevent it. Are your tables and forms in the same db or have you split the db?

  7. #7
    hmcquade is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    11
    no they are in the same db?

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are all of the controls on the 'New Requests' form bound to fields in the underlying table? Can you duplicate the problem reliably and consistantly?

  9. #9
    hmcquade is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    11
    yes, all the fields are bound to the table.

    I am just going through now, populating a field at a time then exiting the form, to see at which field it will add the record

  10. #10
    hmcquade is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    11
    ok, ive done some testing, and i think i have rectified the problem.
    I had set fields to 'Required', in the table itself. once i changed this, the records were being added even though these fields were not populated.

    Thank you everyone for all your help and suggestions!!!

  11. #11
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It should add the record with only one bound control altered. If that is not the case, can you zip your db and post it?

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

Similar Threads

  1. Replies: 4
    Last Post: 05-17-2011, 06:56 AM
  2. Adding the Date & Time record added
    By jo15765 in forum Access
    Replies: 2
    Last Post: 11-26-2010, 11:31 PM
  3. Replies: 1
    Last Post: 10-13-2010, 12:40 PM
  4. Replies: 6
    Last Post: 07-19-2010, 10:57 AM
  5. Replies: 5
    Last Post: 06-29-2010, 01:24 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