|
-
May 18th, 2005, 01:22 AM
#1
Thread Starter
Addicted Member
[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.
-
May 18th, 2005, 07:55 AM
#2
Frenzied Member
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
-
May 20th, 2005, 06:01 PM
#3
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|