I have a Target Form based on a table. It has several fields. One of the fields is "Model".
This Split DB can be used for several different "Models". To keep the clutter down I set each front end DB to only show the model that has been designated for it. So, many front in DB's going to the same Back end....but each front end limited to one model. I make this selection by having a model table, having a "Model" and a "Use" field next to each model. When I set up the individual front ends I just select the proper "Use" field (Yes/No) for the Model information I want the DB to process.
Back to my target Form, with the model field. I want to open this form so it only shows the "Use" model from the Model Table. By the way, the Form I want to open is being opend from another form (Form B). (there is other functionality on this form not part of this discussion) So on Form B when I slect a command button, in VB I DoCmd open the target Form using a query as a filter. The query returns the Model from the model table that has the Use field set to yes. This should work...right?? Well it doesn't. Since the filter query has both the Model field and Use field in it the target form looks for the Use field information. The target form does not have a cooresponding Use field. The filter query when run by itself only returns the model...the Use field is not select for output.
I have used filter queries before and I am not sure why ths one is not working.
Can anyone help? I can supply code if needed.
This Split DB can be used for several different "Models". To keep the clutter down I set each front end DB to only show the model that has been designated for it. So, many front in DB's going to the same Back end....but each front end limited to one model. I make this selection by having a model table, having a "Model" and a "Use" field next to each model. When I set up the individual front ends I just select the proper "Use" field (Yes/No) for the Model information I want the DB to process.
Back to my target Form, with the model field. I want to open this form so it only shows the "Use" model from the Model Table. By the way, the Form I want to open is being opend from another form (Form B). (there is other functionality on this form not part of this discussion) So on Form B when I slect a command button, in VB I DoCmd open the target Form using a query as a filter. The query returns the Model from the model table that has the Use field set to yes. This should work...right?? Well it doesn't. Since the filter query has both the Model field and Use field in it the target form looks for the Use field information. The target form does not have a cooresponding Use field. The filter query when run by itself only returns the model...the Use field is not select for output.
I have used filter queries before and I am not sure why ths one is not working.
Can anyone help? I can supply code if needed.