Results 1 to 3 of 3
  1. #1
    ramindya is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    20

    Write conflict after Spiltting single table into 2 subforms.

    Hello:

    Tools or environment: MS Access 2010 front end and Sql Server backend.The SQL Server tables are linked to the front end.

    I am trying to split one single table Visit and into two separate subforms forms - Subform1: Track and Subform2: Schedule.

    Both forms have one common field visit number from Table Visit and rest of them are different fields from one single table Visit.

    Issue:


    After entering a value for Visitnumber in the first subform and entering values for other fields and then when I try to enter values for the second subform it throws a write conflict error pop message.

    Can you please let me know how to fix this ?

    Thanks !!

    -Ram

  2. #2
    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
    Please show us a picture of your tables and relationships.
    Could you also give us a few lines describing

    - what your application is about, and
    - what exactly you are trying to do( with a simple example).

    We only know what you tell us, so please help us help you.

  3. #3
    ramindya is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    20
    Purpose of the application: It is health study application to follow up and enroll patients for various health studies who have come various treatments in our hospital.To follow up the patients who have visited the hospital to schedule interview ( visits ) done by a user - Scheduler and also to collect other information such as Last date of contact etc done by Interviewer.

    Various forms/Frontend User interface:
    MainForm:
    The application is a research data windows application.Some of the basic information ( fields ) such as FirstName, Lastname, Phonenumber etc are filled/dumped externally by a Electronic Medical Record application automatically. I run a script to dump this data into a Patient table in SQL Server which is linked/imported to MS Access and all these information is displayed in MainForm.The Patient table has MRN which is the Primary key.
    Subform1: Tracking embedded in a tab 1 and table is Visit.
    Subform2: Scheduling embedded in a tab 2 and table is Visit.

    frmPatient (Mainform to display): MRN, FirstName, LastName
    frmSubTracking (Subform to display): VisitNumber, Date_of_LastContact, Current_Status
    frmSubScheduling (Subform to display): VisitNumber, Current_Status, New_Status.

    BackEnd/database:
    There are only two tables in this application ( Patient and Visit )
    Patient Table: MRN (PK), FirstName, LastName
    Visit Table: ID (PK), VisitNumber, Date_of_LastContact,Current_Status, New_Status.
    Visit Table: It has ID field which is the Primary key and identity increment by 1, MRN which is Foreign key and Visit Number which is automatically incremented through front end VBA code.
    Patient to visit table is a one to many relationship so the user can create a fill any any number of visits for each patient.

    User story:
    Users can/should only enter/update information for following fields:
    Date_of_LastContact, Current_Status, New_Status rest of the fields information are shown automatically because the data is already existing.

    Issue:
    When the patient John smith has made two visits.So, both the subforms show visit number 2 and other field information and when the interviewer/scheduler tries to update the data in the same form (ex: frmsubtracking) for the same patient for same visit or tries to enter a new data for another subform ( frmSubScheduling ) for the same patient for same visit. I get the write conflict error.

    Question
    How to overcome this error so either the same user can enter and update the information for the same patient for same visit number simultaneously or two different users can enter or update the information for the same patient for same visit number simultaneously.

    PS:I am flexible with redesigning the table that is I can split the table etc.

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

Similar Threads

  1. Write Conflict Issues
    By AndrewsPanda in forum Access
    Replies: 2
    Last Post: 10-05-2011, 02:30 AM
  2. write conflict error
    By karuppasamy in forum Access
    Replies: 1
    Last Post: 06-07-2011, 12:23 PM
  3. Write Conflict Demonstration
    By pkstormy in forum Code Repository
    Replies: 1
    Last Post: 12-02-2010, 08:25 PM
  4. Write Conflict Error Message
    By AKQTS in forum Forms
    Replies: 2
    Last Post: 07-27-2010, 09:57 AM
  5. Write Conflict Error
    By botts121 in forum Access
    Replies: 5
    Last Post: 09-25-2009, 12:11 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