Re: Query run and displayed in a form?



On Wed, 31 Oct 2007 18:02:22 -0000, Tobias wrote:

Hello,

I have a data entry form. When data is entered in one of the fields I
would like that data to be used to lookup info in a query and have
that displayed in the form. The main form is a purchase form, when
the budget field is selected I would like a query run that looks at
that budget and returns the amount remaining. I currently have the
query working - I do not know how to "embedd" it in the form and
trigger the query when budget field is changed.

Where should I start? I am obviously not sure of the terminology.

Any advice on where to start would be much appreciated.

Thank you,
Tobias

well, you can use a subform that shows the "working query". On the event of
after update of the field in main form, the <subform>.requery method should
be invoked.
--
Regards
Benny Andersen
.



Relevant Pages

  • Query run and displayed in a form?
    ... I have a data entry form. ... would like that data to be used to lookup info in a query and have ... the budget field is selected I would like a query run that looks at ... trigger the query when budget field is changed. ...
    (comp.databases.ms-access)
  • Re: classify
    ... It takes a bit of effort to get this kind of query working. ... Low_Avg High_Avg Classification ... FROM YourTable, Translation ...
    (microsoft.public.access.queries)
  • Re: classify
    ... It takes a bit of effort to get this kind of query working. ... FROM YourTable, Translation ... How can I set a field to a particular classification, or "handicap", based ...
    (microsoft.public.access.queries)
  • Re: Forms do not show
    ... does the above work fine as a saved query? ... I would suggest you get the query working BEFORE you attempt to create the ... Also, what happens when you open the form in design view, and then switch to ...
    (comp.databases.ms-access)
  • RE: get the total employee per position by entering the start and end
    ... parameter query using a form. ... Once you get the query working, ... a report from that query. ...
    (microsoft.public.access.queries)