Results 1 to 4 of 4
  1. #1
    FadingAPE is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    18

    Displaying queries

    Hello,

    I'm creating a "search engine" for my database. I have everything set up in regards to the code etc and at the moment when searching a keyword it opens another form to display the results - I want it all on one form. Does anyone have any help on this at all or could direct me to a website that offers this info. Ive had a look around and not getting far!



    Thanks

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Hi,

    Why not show the result in a subform of the searchform? Or put the search boxes in the header of the form, show the results in the detail section?

    grNG

  3. #3
    FadingAPE is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    18
    Thanks. I did think that however when i sent the cmd button to open form it still opens up the other form. How to I get it so it stays on my main page and just changes the subform? Would I did to create a macro??

  4. #4
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    First build the correct SQL statement according to the choises the user has made, then put as the on-click event code :

    Me.[Name subform control].Form.RecordSource = " ..put here your sql statement.."

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

Similar Threads

  1. Displaying a null value as 0
    By jordanturner in forum Access
    Replies: 2
    Last Post: 09-17-2010, 09:22 AM
  2. Displaying Value and not ID
    By jonny in forum Access
    Replies: 3
    Last Post: 10-19-2009, 08:21 AM
  3. Displaying Time Only
    By Corinne in forum Access
    Replies: 5
    Last Post: 06-24-2009, 09:45 PM
  4. displaying the time 12:00:00 AM
    By kfoyil in forum Access
    Replies: 4
    Last Post: 12-05-2006, 11:02 PM
  5. Displaying a PDF in a Form
    By Chaz in forum Forms
    Replies: 0
    Last Post: 08-07-2006, 03:26 PM

Tags for this Thread

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