filter a form

  • Thread starter Thread starter Ivor Williams
  • Start date Start date
I

Ivor Williams

I have a form frmTransfers with a record source tblTransfers. On the form is
a combo box cboCustomer. When the form is opened, I would like it to only
show records where the value in cboCustomer is not blank. How can I do this?

Ivor
 
Hi Ivor,

Change the RowSource of the combo box to a query that returns records that
are not Null.

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


Regards,

Eric Butts
Microsoft Access Support

"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."


--------------------
| From: "Ivor Williams" <[email protected]>
| Newsgroups: microsoft.public.access.forms
| Subject: filter a form
| Lines: 7
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <bdVRb.23428$P51.16415@clgrps12>
| Date: Wed, 28 Jan 2004 20:47:03 GMT
| NNTP-Posting-Host: 142.179.115.122
| X-Trace: clgrps12 1075322823 142.179.115.122 (Wed, 28 Jan 2004 13:47:03
MST)
| NNTP-Posting-Date: Wed, 28 Jan 2004 13:47:03 MST
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!n
ews.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!167.206.3.103
.MISMATCH!news3.optonline.net!newsfeed.telusplanet.net!newsfeed.telus.net!cl
grps12.POSTED!not-for-mail
| Xref: cpmsftngxa07.phx.gbl microsoft.public.access.forms:252637
| X-Tomcat-NG: microsoft.public.access.forms
|
| I have a form frmTransfers with a record source tblTransfers. On the form
is
| a combo box cboCustomer. When the form is opened, I would like it to only
| show records where the value in cboCustomer is not blank. How can I do
this?
|
| Ivor
|
|
|
 
If you want to limit the *form* to only records where there is a customer,
you could change its RecordSource property to something like this:
SELECT tblTransfers.*
FROM tblTransfers
WHERE CustomerID Is Not Null;

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

Ivor Williams said:
I have a form frmTransfers with a record source tblTransfers. On the form is
a combo box cboCustomer. When the form is opened, I would like it to only
show records where the value in cboCustomer is not blank. How can I do
this?
 
Back
Top