G
G.
I have a query based on 8 tables. It has 135k rows. I created a form with a
combo box and a command button so that users can filter through the query. I
have done this on previous DB's and am not sure what I am doing wrong. The
problem however seems to be with the Criteria statement I enter into the
query.
To make it simple I created a separate query with 1 field and 5 rows. The
combo box is based on the 5 rows so it has 5 selections. I then created the
command button and then entered [Forms]![FrmPar]![Pt Type] into the Criteria
area of the Pt Type field of my query.
It runs ok at first. However, if I exit the db and open it again first I get
the error Your MS Access DB contains missing or broken reference to the file
GWAB1.OCX version 1.0. Also, the items in the combo change or dissapear. I
investigate by looking at the query that the combobox is based on and to my
surprise, I may have only 1 of the items I entered, or I may still have 5 but
one of them is repeated twice and another is not there. If I remove the
Criteria expression [Forms]![FrmPar]![Pt Type] from the query, all the
trouble goes away but I then cannot filter. I have been working to resolve
this for many hours taking many different approaches but nothing has worked.
If anyone has insight please please help. My head and eyes hurt.
Thank you.
combo box and a command button so that users can filter through the query. I
have done this on previous DB's and am not sure what I am doing wrong. The
problem however seems to be with the Criteria statement I enter into the
query.
To make it simple I created a separate query with 1 field and 5 rows. The
combo box is based on the 5 rows so it has 5 selections. I then created the
command button and then entered [Forms]![FrmPar]![Pt Type] into the Criteria
area of the Pt Type field of my query.
It runs ok at first. However, if I exit the db and open it again first I get
the error Your MS Access DB contains missing or broken reference to the file
GWAB1.OCX version 1.0. Also, the items in the combo change or dissapear. I
investigate by looking at the query that the combobox is based on and to my
surprise, I may have only 1 of the items I entered, or I may still have 5 but
one of them is repeated twice and another is not there. If I remove the
Criteria expression [Forms]![FrmPar]![Pt Type] from the query, all the
trouble goes away but I then cannot filter. I have been working to resolve
this for many hours taking many different approaches but nothing has worked.
If anyone has insight please please help. My head and eyes hurt.
Thank you.