Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Re: form

Discussion in 'Information Technology' started by Krazy Darcy, Jul 28, 2006.

Tags:
  1. Krazy Darcy

    Krazy Darcy
    Expand Collapse
    Guest

    That query code helped me with a search button I want to impliment on my
    database so users don't have to revisit the switchboard to launch the search.

    However:
    In the form with the text box that is the input to the query, and the button
    that launches the query the only other thing in the test form is a subform
    that is supposed to be based on the query (I used the subform wizard and told
    it to use the query).
    However the query results pop up in another window instead of the subform.

    I need to redirect the output of the query to the subform
    "Someone" wrote:

    > Have you based the subform on a query to the table? If so, you can then set
    > up the query where the criteria for each field = whatever is entered into
    > the corresponding textbox on the form and, if appropriate, AND where the
    > textbox is null. For example:
    >
    > [Forms]![FormName]![TextBoxName] Or [Forms]![FormName]![TextBoxName] Is Null
    >
    > Wrap 'Like "*" & ...... & "*" around the above if you want to search part of
    > the field.
    >
    > All you then have to do then is requery the data to refresh it.
    >
    > You haven't told us how you send the query, so I can't answer why it doesn't
    > work how you want it to, except to say you haven't done it correctly - you
    > just need to follow the above format.
    >
    > M
    >
    > "flow23" <flow23@discussions.microsoft.com> wrote in message
    > news:75A2BA10-162D-42C0-AFE0-B1533F9D00C0@microsoft.com...
    > >I have a form which has fields from a query
    > >
    > > Also at the top,in the form is search fields
    > >
    > >
    > > When I enter the keywords in the search box, It popups a new datasheet
    > > view
    > > of the query with the right results
    > >
    > > but not the fields in the form itself?
    > >
    > > why is that?
    > >

    >
    >
    >
     
  2. Loading...


Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page