Re: Query Results in multiple text boxes



My problem is not that it returns more than one record. In this particular
instance the way that they data is populated it will only return one record
or no record. Sorry if I am confusing you. Currently the user inserts a value
in a combo box that is tied to a parameter query. Then the user clicks on a
command button that runs the query. When the query runs it pops up a data
sheet with the record that I want. What I would like to do is make it return
the results on the search form itself. I tried to do that with the text boxes
and Dlookups but it doesn't seem to work if I put more than one text box on
the form. I tried to have it display the results in a list box, but I was
unable to get the list box to refresh when I run the search a second time.
Finally I still have not been able to stop the query results window from
popping up. I appreciate any help with this as I am fairly nex to this.
Thanks.

"Larry Daugherty" wrote:

Base your form on a query that uses the "TOP n" predicate, in this
case, TOP 1. That will return just one record.

HTH
--
-Larry-
--

"pfm721" <pfm721@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AB52FF4C-980D-45FA-AD53-0BA2759E5ECF@xxxxxxxxxxxxxxxx
Currently I have a form that takes a user input and runs a parameter
query
returning only one record at a time. When it returns the record I
would like
it to display the results on the search form and not in a pop up
window. What
would be the best way to go about it? I tried to use 4 text boxes
with some
variation of this code =DLookUp("[APC]","qryAPClookup") to look up
the four
fields in the query but it doesn't work when there is more than one
for some
reason. Any ideas?



.



Relevant Pages

  • Re: Custom Menu
    ... You can set the subform's Source Object to a query. ... use a form to display these queries as a datasheet. ... the standard Access menu until the query window is closed. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Custom Menu
    ... You can set the subform's Source Object to a query. ... The form opens in datasheet view just dandy. ... use a form to display these queries as a datasheet. ... the standard Access menu until the query window is closed. ...
    (microsoft.public.access.modulesdaovba)
  • Re: oracle sql developer tool - Execution time
    ... It's usually displayed atop the Script Runner window. ... in the query text window. ... differ from what SQL Developer reports in its default timing display, ...
    (comp.databases.oracle.tools)
  • Microsoft Cleanliness
    ... I guess I've been working with A97 too long. ... In the database window they added a couple of wizards to clutter it up instead of. ... MS preceeds each table with the word TABLE and each query with "QUERY". ... I guess MS programmers have never heard a dropdown can have more than one column. ...
    (comp.databases.ms-access)
  • Re: Mailmerge from Access
    ... Query linked to the Access db. ... > manipulate the z-order (i.e. which window in front of which) will work. ... >> So the problem is that the queries parameter window opens up first, ...
    (microsoft.public.word.mailmerge.fields)