dynamic suquery

  • Thread starter Thread starter =?iso-8859-1?Q?Luis_Assun=E7=E3o?=
  • Start date Start date
?

=?iso-8859-1?Q?Luis_Assun=E7=E3o?=

hello

i have a sub query in a form and i want to know how can i
make the sub query run, or update,without leaving the
form, because i have fields in the form that are in the
criteria of the subquery.
basicly what i want is to change the subquery has i chose
values from combos in the form.

thanks
 
Hi,

Whatever the control is on the Form try the following as the OnClick Event
of a command button:

Private Sub Command4_Click()
[name of control].Requery
End Sub

I hope this helps! If you have additional questions on this topic, please
respond back to this posting.


Regards,

Eric Butts
Microsoft Access Support
(e-mail address removed)
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."

This posting is provided "AS IS" with no warranties, and confers no rights

--------------------
| Content-Class: urn:content-classes:message
| From: =?iso-8859-1?Q?Luis_Assun=E7=E3o?= <[email protected]>
| Sender: =?iso-8859-1?Q?Luis_Assun=E7=E3o?= <[email protected]>
| Subject: dynamic suquery
| Date: Mon, 29 Mar 2004 07:23:07 -0800
| Lines: 10
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcQVobz7CQXfMiTZTv2aopSyzUMFuQ==
| Newsgroups: microsoft.public.access.queries
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.access.queries:195636
| NNTP-Posting-Host: tk2msftngxa08.phx.gbl 10.40.1.160
| X-Tomcat-NG: microsoft.public.access.queries
|
| hello
|
| i have a sub query in a form and i want to know how can i
| make the sub query run, or update,without leaving the
| form, because i have fields in the form that are in the
| criteria of the subquery.
| basicly what i want is to change the subquery has i chose
| values from combos in the form.
|
| thanks
|
 
Back
Top