Results 1 to 3 of 3

Thread: [Resolved] direct searched query into form?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    Resolved [Resolved] direct searched query into form?

    hi, is that possible to direct searched query into a form (for viewing pleasure)? in ms access ?

    and if possible, can anybody teach me how to do a simple query inside macro? not using the ms access query design wizard method
    Last edited by asmdev; May 20th, 2005 at 06:01 PM.

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: direct searched query into form?

    First question - set the forms Record Source property to the query, then the controls on the form Control property to the field you want displayed. Both these properties are on the data tab of the properties box. Or use the form design wizard to do this for you.
    Second question - I don't like macros. Can make it hard to follow code flow. But if you insist, in the Action column of the macro, select OpenQuery, then in the bottom pane select the query you want. In code, you can use DoCmd.RunMacro "macroname" to run the macro. Of course, in code you can also use DoCmd.OpenQuery "queryname" to run the query. There's a similar command to OpenQuery called RunSQL, but that doesn't work for SELECT queries.
    Tengo mas preguntas que contestas

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    Re: direct searched query into form?

    thanks, salvelinus
    this problem is solved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width