Results 1 to 4 of 4
  1. #1
    isnpms is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2010
    Posts
    19

    Query Conflict

    Good morning.
    I have a little issue about a system I am developing.
    It’s a system for calculating values with USG exams and there are many patients data recorded in it.
    I have a form where are insert data and where I have commands to print different reports coming from the same query and table. It works fine from this form. I have to capture the code value on the form to print specifically data from this code that is unique for each patient, using the criteria:
    WHERE (((tbl_OB_1_ObstetriciaGeral_Precoce.Codigo)=[Formulários]![frm_Obstetricia_2].[Codigo]));
    The issue is, this form is actually a subform, and when it is a subform this doesn’t work. When I click the command to preview the form or to directly print, it asks me (insert dialog box) to insert the value [Formulários]![frm_Obstetricia_2].[Codigo]).
    Anyone could help me on this?
    Thank you.
    Ivan Sinigaglia (Brasil)


    ================================================== =========
    SQL query


    SELECT tbl_OB_1_ObstetriciaGeral_Precoce.Codigo, tbl_OB_1_ObstetriciaGeral_Precoce.Nome,

    //.......//
    tbl_OB_1_ObstetriciaGeral_Precoce.imd3d_11
    FROM tbl_OB_1_ObstetriciaGeral_Precoce
    WHERE (((tbl_OB_1_ObstetriciaGeral_Precoce.Codigo)=[Formulários]![frm_Obstetricia_2].[Codigo]));
    ================================================== ===========
    ONLY AS A FORM

    =============
    AS A SUBFORM


    ======================
    Query

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    The form reference changes when it becomes a subform:

    Forms Refer to Form and Subform properties and controls
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    isnpms is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2010
    Posts
    19
    Great Help !!!
    Thank you very much.
    That's enough.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Write Conflict Error Message
    By AKQTS in forum Forms
    Replies: 2
    Last Post: 07-27-2010, 09:57 AM
  2. Write Conflict Errors with SQL-Access DB
    By trb5016 in forum Access
    Replies: 5
    Last Post: 01-14-2010, 02:10 PM
  3. 2 combo boxes - Conflict
    By JimS in forum Forms
    Replies: 3
    Last Post: 10-13-2009, 03:49 PM
  4. 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