A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Filtering based on data in another table



 
 
Thread Tools Display Modes
  #1  
Old August 28th, 2008, 09:54 PM posted to microsoft.public.access.forms
amanda_jb
external usenet poster
 
Posts: 23
Default Filtering based on data in another table

Can anyone help me write a code to generate a Filter by Form, obtaining the
data from a different table?

My scenario is: I have a customer form (where is the filter button would be
located) and a workorder form (which contains the data i need to have the
customer form filter off of).

We have multiple Customers in our Database where their product makes them
have different customer ID's, therefore when a cust calls and referrences a
PO to find the product, I need the filter to pull the customer ID from the
Workorder Table where the PO resides and filter the Customer Form to that
table. I have tried to write a query so the PO can be entered differently
when the button is clicked, just can seem to get the filter to understand
what is going on. Please let me know if this doesn't make sense and if
should rephrase if I expect help, but if you can help it would be greatly
appreciated!!!

Thank you!!

--
Amanda
  #2  
Old August 29th, 2008, 02:05 PM posted to microsoft.public.access.forms
Maarkr
external usenet poster
 
Posts: 240
Default Filtering based on data in another table

can't you use a query for your recordsource having the required elements of
the two tables? If your Cust table has the data, can you create a combo box
filter and select the Combo box wizard to 'lookup values in a table or query'?

"amanda_jb" wrote:

Can anyone help me write a code to generate a Filter by Form, obtaining the
data from a different table?

My scenario is: I have a customer form (where is the filter button would be
located) and a workorder form (which contains the data i need to have the
customer form filter off of).

We have multiple Customers in our Database where their product makes them
have different customer ID's, therefore when a cust calls and referrences a
PO to find the product, I need the filter to pull the customer ID from the
Workorder Table where the PO resides and filter the Customer Form to that
table. I have tried to write a query so the PO can be entered differently
when the button is clicked, just can seem to get the filter to understand
what is going on. Please let me know if this doesn't make sense and if
should rephrase if I expect help, but if you can help it would be greatly
appreciated!!!

Thank you!!

--
Amanda

  #3  
Old August 29th, 2008, 04:09 PM posted to microsoft.public.access.forms
amanda_jb
external usenet poster
 
Posts: 23
Default Filtering based on data in another table

I tried that as well, but as soon as I add the workorder table, it shows each
customer multiple times per each ID which was generated in the workorder
unless I make it unique, which I can't do.
--
Amanda


"Maarkr" wrote:

can't you use a query for your recordsource having the required elements of
the two tables? If your Cust table has the data, can you create a combo box
filter and select the Combo box wizard to 'lookup values in a table or query'?

"amanda_jb" wrote:

Can anyone help me write a code to generate a Filter by Form, obtaining the
data from a different table?

My scenario is: I have a customer form (where is the filter button would be
located) and a workorder form (which contains the data i need to have the
customer form filter off of).

We have multiple Customers in our Database where their product makes them
have different customer ID's, therefore when a cust calls and referrences a
PO to find the product, I need the filter to pull the customer ID from the
Workorder Table where the PO resides and filter the Customer Form to that
table. I have tried to write a query so the PO can be entered differently
when the button is clicked, just can seem to get the filter to understand
what is going on. Please let me know if this doesn't make sense and if
should rephrase if I expect help, but if you can help it would be greatly
appreciated!!!

Thank you!!

--
Amanda

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:05 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.