I need to open a table's form and limit (filter) the records based on the contents of two fields, here is a little more detail:
I have an opening form called StoreData with a field [StoreNbr], and others. I have a jumpto button that links to a form for table RCData linking to it's [StoreNbr] field. RCData also has a field called RackID. When I jump to RCData it creates a new record if there is not one. So far so good? From the RCData form I have a jumpto button that links to table Modules to it's [RackID] field. Form Modules also has the [StoreNbr] field.
Problem is, I need to limit the Modules form to records that pertain to the (StoreNbr field AND the RackID field). Each store can have several racks, and each rack has several modules. There will be lots of stores. As it is with only jumping to the modules form based on the [RackID] field, I get modules for ALL stores, not just the one that the rack actually belongs to.
Any help?
Keith
email me
Bob_Katayama
You should be able to search the StoreNbr based on RackID and then based on Modules.
Display only those that have both a RackID and Module for that StoreNbr.
All forms must have at least a StoreNbr field.
Hope this helps
Bob
Client/Server Professional
PocketPC Professional
www.technobrains.com
Your Neighborhood PDA Cafe
Bob
Microsoft MVP - Windows Mobile Devices
[url="www.technobrains.com"]www.technobrains.com[/url]
[url="http://www.pocketpcmag.com/blogs/index.php?blog=15"]Smartphone & Pocket PC Blog[/url]
[url="www.clickgamer.com/technobrains.htm"]PDA Games[/
archer
Thanks Bob.
I am not sure if I get my point across very well. What I need to do is if the user clicks on the form for RackID's, limit all the RackID records only to those associated with StoreNbr. That works fine. Then if they click from the RackID form to the Modules form, I need to limit the records to only the modules for the RackID and the StoreNbr. All just with display forms. Is there a way to limit(filter) form records based on two or multiply criteria?
Thanks again.
Keith
Bob_Katayama
I don't have Visual CE loaded anymore therefore forgive me if I do not explain this axactly as required.
What you would do is create the final output based on what you need to have done instead of basing it one how you expect the users to click. Therefore as long as you set the jump and carry over the necessary common factor you should be OK. To me the common factor
seems like StoreNbr.
Therefore on your destination form, add some lookup controls that retrieve values from the table you just jumped from. Set the key of the lookup to be the key you used to jump to this form. In this case StoreNbr.
This would apply to each form you jump to. Therefore you would do this with the RCData form and then the Module form.
Then you should only see the StoreData/RCData/Module -RackID for that storeNbr only.
Hope this makes sense and helps.
If there is a will, there is away. [:D]
Bob
Client/Server Professional
PocketPC Professional
www.technobrains.com
Your Neighborhood PDA Cafe
Bob
Microsoft MVP - Windows Mobile Devices
[url="www.technobrains.com"]www.technobrains.com[/url]
[url="http://www.pocketpcmag.com/blogs/index.php?blog=15"]Smartphone & Pocket PC Blog[/url]
[url="www.clickgamer.com/technobrains.htm"]PDA Games[/
Bob_Katayama
Here is another flowchart based on the above scenerio.
Jump from StoreData to RCData using StoreNbr.
Jump from RCData to Mobule using StoreNbr then add some lookup controls that retrieve values from the table you just jumped from. In your case the RackID. Set the key of the lookup to be the key you used to jump to this form. In this case StoreNbr. Then you should see the RackID listed for that StoreNbr.
Is this explanation better?
Bob
Client/Server Professional
PocketPC Professional
www.technobrains.com
Your Neighborhood PDA Cafe
Bob
Microsoft MVP - Windows Mobile Devices
[url="www.technobrains.com"]www.technobrains.com[/url]
[url="http://www.pocketpcmag.com/blogs/index.php?blog=15"]Smartphone & Pocket PC Blog[/url]
[url="www.clickgamer.com/technobrains.htm"]PDA Games[/
Bob_Katayama
Hi Archer:
Was my suggestion understandable?
Bob
Client/Server Professional
PocketPC Professional
www.technobrains.com
Your Neighborhood PDA Cafe
Bob
Microsoft MVP - Windows Mobile Devices
[url="www.technobrains.com"]www.technobrains.com[/url]
[url="http://www.pocketpcmag.com/blogs/index.php?blog=15"]Smartphone & Pocket PC Blog[/url]
[url="www.clickgamer.com/technobrains.htm"]PDA Games[/
Bob_Katayama
Hi Archer:
Was my suggestion understandable?
Bob
Client/Server Professional
PocketPC Professional
www.technobrains.com
Your Neighborhood PDA Cafe
Bob
Microsoft MVP - Windows Mobile Devices
[url="www.technobrains.com"]www.technobrains.com[/url]
[url="http://www.pocketpcmag.com/blogs/index.php?blog=15"]Smartphone & Pocket PC Blog[/url]
[url="www.clickgamer.com/technobrains.htm"]PDA Games[/