Results 1 to 2 of 2
  1. #1
    ETCallHome is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Location
    Limpopo, South Africa
    Posts
    48

    Link Criteria no working when opening new form

    Hi,

    I have a continous form FormA that displays data from Tbl1 only. Created a click procedure on fldA that opens FormB with the link Criteria to open the selected record on FormB. FormB is a Single Form that only selects that current record. See code below from FormA

    Private Sub FldA_Click()
    strLinkCriteria = "[Tbla].[FldA] = '" & Me.FldA& "'"
    DoCmd.OpenForm "FormB", , , strLinkCriteria, , , strSndArgs
    End Sub

    I have used the same code in other Forms that works similar and they work fine, but in this form it open the form and displays the first record on Tbl1.



    I have check that the linkcrtieria passed is correct and also compared the properties of FormB against the properties of the forms that does work and everything seems to be in order. I do not want to redevelope the form because I am falling behind with the project.

    Please help.

    Thanks
    Earl

  2. #2
    ETCallHome is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Location
    Limpopo, South Africa
    Posts
    48
    Hi,

    I resolved the issue... if anyone does experiences a similar problem, check the if you changed the allowedits, allowadditions, etc properties of the form. I set these properties to false on the open form event, as I am using one form to enquire, modify and add records to the tables and did not want the enquire function to do anything on the form...

    I remove the code and all is working fine again.

    Thanks to those you checked the thread.. learning everyday.

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

Similar Threads

  1. Replies: 9
    Last Post: 05-05-2011, 02:05 PM
  2. Replies: 1
    Last Post: 11-09-2010, 03:02 PM
  3. Replies: 3
    Last Post: 10-13-2010, 03:35 PM
  4. Replies: 0
    Last Post: 04-08-2010, 12:22 PM
  5. Replies: 4
    Last Post: 10-26-2009, 05:27 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