> One aspect of myself is that I try to convey as many possibilities as
> possible. This can be a double edge sword.
>
> It is possible to open a query by itself to show information, but as
> someone who is new you should only be showing information to your users with
> only forms or reports. The queries that they are based upon with work fine
> as I described.
>
> If you have further quesitons please describe how you wish to present
> the data and what you have finished so far. It sounds like you want to use
> a form.
>
> --
> Craig Hornish
>
> Visit weekly Access conferences
> Tuesday, 11:00am-12:30pm (Eastern US)
> Thursday, 3:30pm- 5:00pm (Eastern US)
>
>
http://community.compuserve.com/n/pfx/forum.aspx?webtag=ws-msdevapps>
> "Think outside the box, because anything is possible."
> "How long it will take or whether it requires divine intervention is another
> issue"
>
> "Quin" <Quin[ at ]discussions.microsoft.com> wrote in message
> news:8A3753B4-CE3B-4DCE-8F40-265B03FE8195[ at ]microsoft.com...
> > Craig,
> >
> > I am sorry but I do not understand your reply. How do I get the Button to
> > run the query?
> >
> >
> >
> > "Craig Hornish" wrote:
> >
> >> You are close to the right idea but your first sentance is probably
> >> incorrect. I have had the need to make the criteria differnent but that
> >> is
> >> an advanced subject.
> >>
> >> So you put this into the fields 'Criteria' in the query that is either in
> >> the Report or Forms 'Record Source' property or the Query that that it is
> >> based on.
> >> Like '*' & [Forms]![NameOfYourForm]![NameOfControlOnYourForm] & '*'
> >>
> >> The control button you metion then opens the Report / or Query(not really
> >> used that much) and you see the information that is "Like" what was
> >> entered
> >> into the control.
> >> DoCmd.OpenReport "NameOfReport" , acPreview
> >>
> >> If it the forms query then you need to requery the form
> >> Me.Requery
> >> Becuase you are using the Like - it will show all records when you open
> >> the
> >> form for the first time.
> >>
> >> HTH
> >> --
> >> Craig Hornish
> >>
> >> Visit weekly Access conferences
> >> Tuesday, 11:00am-12:30pm (Eastern US)
> >> Thursday, 3:30pm- 5:00pm (Eastern US)
> >>
> >>
http://community.compuserve.com/n/pfx/forum.aspx?webtag=ws-msdevapps> >>
> >> "Think outside the box, because anything is possible."
> >> "How long it will take or whether it requires divine intervention is
> >> another
> >> issue"
> >>
> >> "Quin" <Quin[ at ]discussions.microsoft.com> wrote in message
> >> news:82504188-0292-42A2-9DD1-B87DB57CD709[ at ]microsoft.com...
> >> >I need to create a submit button that will move a text string from a
> >> >text
> >> >box
> >> > on a form and enter it into a query statement.
> >> >
> >> > I am learning Microsoft Access. I have created a query where the user
> >> > must
> >> > enter a text string to pull information out of a table. Currently this
> >> > is
> >> > set up with this statement.
> >> >
> >> > Like '*' & [Text String Goes Here] & '*'
> >> >
> >> > I would now like to take this to the next level by putting the results
> >> > of
> >> > the query into a form and also by placing a control in the form that
> >> > will
> >> > allow me to supply the text string for the query.
> >> >
> >> > I believe I have solved most of what is needed. I have the ability to
> >> > design the form to display the results of a query. I also believe that
> >> > if
> >> > I
> >> > replace the square brackets in the query to input the text string from
> >> > the
> >> > form required by the "like" statement I would just replace the square
> >> > brackets in the "like" statement with criteria like this.
> >> >
> >> > [Forms]![NameOfYourForm]![NameOfControlOnYourForm]
> >> >
> >> > It would then look like this.
> >> >
> >> > Like '*' & [Forms]![NameOfYourForm]![NameOfControlOnYourForm] & '*'
> >> >
> >> > Is that right?
> >> >
> >> > The last piece of the puzzle now is to design a submit button that will
> >> > run
> >> > the query. Right? I know how to place the button, but I do not know
> >> > how
> >> > to
> >> > make it function. Are my assumptions on the basic procedures correct?
> >> > I
> >> > really look forward to being able to do this.
> >> >
> >> > Quin
> >> >
> >>
> >>
> >>
>
>
>