Results 1 to 5 of 5
  1. #1
    mgio is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jul 2014
    Posts
    13

    Form is automatically entering one row of data


    Hello I have a main form called timesheet which has 3 fields on it, a case id, a case number and a case name. The rest of the form has a sub form and a form inside the form. For some reason every time i change to a different Case ID or Case number the first row of data from the table timesheet which the form timesheet is bound to, is inserting itself into each case. But it is not creating duplicates, it is simply being tossed from one case code to the next upon a refresh of either of the 3 fields or close and open form.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Did you use the Relationships Window to manage Relationships? Perhaps you can review the rules delegated to the Relationships Window.

  3. #3
    mgio is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jul 2014
    Posts
    13
    I have been messing around with it more and I have realized that the Main Form Timesheet is bound to Timesheet table so which ever record 1 - 24 the form is on it puts in information based upon which record its closed on. Is there possibly a way to get rid of record scrolling and disable that entirely for the form?

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by mgio View Post
    ... Is there possibly a way to get rid of record scrolling...
    I am not sure what you mean by scrolling. If you are using Single Form as a Default View, you can use the Navigation Buttons property to hide the Navigation Buttons, resulting in the user not being able to navigate to another record within the Recordset.

    If your Default View is Continuous or Datasheet, not sure you can prevent access to other records within the Form's Recordset.

  5. #5
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    There is some code that is inserting a value and thus creating a record - as merely opening or scrolling in a form will not create a new record in normal circumstances. The fact that the main form is bound to a table is not the issue - and is normal. As you describe yourself as a novice it will be difficult to explain and you should be sure that the change you seek is in keeping with the original design of the application you are using. You should look at the form / sub form events and inspect the vba code to discover when the value is being inserted.

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

Similar Threads

  1. Replies: 1
    Last Post: 12-10-2012, 07:04 AM
  2. Entering form data
    By hawzmolly in forum Forms
    Replies: 3
    Last Post: 07-11-2012, 06:10 PM
  3. Replies: 3
    Last Post: 04-15-2012, 09:53 AM
  4. Automatically enter today's date when entering time
    By Szabi in forum Database Design
    Replies: 5
    Last Post: 03-16-2012, 03:50 AM
  5. Replies: 3
    Last Post: 02-22-2012, 11:31 AM

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