Results 1 to 9 of 9
  1. #1
    ashu.doc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    124

    Query design for search button

    hi everyone
    I am trying to make a query for a search button which should bring a record as its original form not in its table form. at the moment I am using this query to get the record as table form:

    [Forms]![F_Search]![combo1]
    where combo1 is the search criteria box. This gives me the result in table form, but I want the result to show that form which I have used to enter the data for that particular record, so that if I want to edit the form, I can edit.

    many thanks
    Ash

  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,870
    Please explain this
    a record as its original form not in its table form
    .

    Perhaps an example would help.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Not sure what you mean by "bring a record as its original form not in its table form" nor "result in table form, but I want the result to show that form which I have used to enter the data".

    Do you need to apply filter to a form RecordSource?

    You did not post a query statement. I NEVER use dynamic parameterized queries. I prefer VBA to search and filter http://www.allenbrowne.com/ser-62.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    ashu.doc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    124
    Click image for larger version. 

Name:	Untitled.png 
Views:	7 
Size:	8.9 KB 
ID:	21299

    So this is the form I use for entering the data. And ofcourse data is collected as table.
    Then this is the search form:
    Click image for larger version. 

Name:	Untitled1.png 
Views:	7 
Size:	3.1 KB 
ID:	21300

    So if I search a patient, is it possible to get the record of patient as the form above? Currently I am using that simple query which I have mentioned above which just show me the record of that patient in a table form.

    Many thanks
    Ash

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    The search controls can be in the Header section of the data entry form. Did you try the method from the link?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    ashu.doc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    124
    @June7 but will this method not bring the results in table? I need to pull out the result in the Form view.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    The method demonstrated in link applies filter criteria to the form to display desired record(s).
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    ashu.doc is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    124
    Not sure how can I apply this to what I need.

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I don't understand how you could not apply it.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Subform Data Entry Button - Search Button
    By thaBadfish in forum Forms
    Replies: 11
    Last Post: 06-23-2015, 03:14 PM
  2. Replies: 1
    Last Post: 05-06-2015, 01:23 PM
  3. Search Button to search entire records VBA
    By excellenthelp in forum Access
    Replies: 5
    Last Post: 06-18-2014, 02:54 PM
  4. Replies: 5
    Last Post: 07-13-2012, 01:15 AM
  5. Replies: 12
    Last Post: 03-22-2012, 02:48 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