Results 1 to 4 of 4
  1. #1
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453

    form search how

    Hi

    not sure what direction to go in with this issue

    I have two tables in a relationship

    If I create a query

    [CODE]]SELECT tblDeceased.Mlink, tblDeceased.Plot, tblDeceased.GraveNo, tblDeceased.Forenames, tblDeceased.Surname, tblDeceased.Inscription, tblMemorial.Mlink, tblMemorial.Inscription
    FROM tblMemorial INNER JOIN (tblDeceased INNER JOIN tblJoin ON tblDeceased.GraveID = tblJoin.fkGraveID) ON tblMemorial.MemorialID = tblJoin.fkMemorialId;[/CODE


    then as I would expect the query shows all records

    It's from this point on I get confused

    I want to create an editable table from that query

    where all the records are shown in datasheet view



    And I want to be able to filter/search by surname or Mlink

    can't seem to be able to figure out how to do it.

    Appreciate any hints

    thanks

    Ian

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    1. this joined query MAY NOT allow you to edit. Some do. It depends on your tables.

    2. make a form, for continuous records on your query. (use the wizard)
    in the form header, place a text box, say textBox123
    in the event property, AFTERUPDATE event, put this code...

    Code:
    if isNull(textBox123) then
       me.filterOn = false
    else
       me.filter = "[surname]='" & textBox123 & "'"
       me.filterOn = true
    endif
    that is for exact matches. If you want near match..
    me.filter = "[surname] like '" & textBox123 & "*'"

  3. #3
    vicsaccess's Avatar
    vicsaccess is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    451
    There's probably several ways to search a form, have you tried using the combobox wizard? or maybe a simpler version of http://allenbrowne.com/ser-62.html

  4. #4
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    Hi

    thanks one and all

    project for tomorrow

    cheers

    Ian

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

Similar Threads

  1. Replies: 8
    Last Post: 09-02-2015, 03:00 PM
  2. Replies: 2
    Last Post: 04-13-2015, 02:45 PM
  3. Replies: 3
    Last Post: 09-02-2013, 04:33 PM
  4. Replies: 7
    Last Post: 08-08-2012, 03:28 PM
  5. Replies: 1
    Last Post: 04-20-2012, 03:16 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