Hello,
I have a simple database in access 2007. It contains only one table.
I have a form called qryAll. From this form the user can enter criteria for a query that queries all of the fields in a table. (so you can query with criteria from more that one field)
Anyway this all works fine. I imported data into the database from excel, some 900 records and with these records the query works as expected.
Now I notice when I add a new record, It wont appear in query results. Even if I search for it by its ID, yet it appears in the table.
This has me stumped. Im no advanced user. I have tried clicking 'refresh all' but it makes no difference. Ive been searching for some time now for a solution and now I seek your help!
If it helps, I went into the query and went to SQL view. See below.
SELECT [TBL CANDIDATES].*, [TBL CANDIDATES].ID, [TBL CANDIDATES].CANDIDATE_NAME, [TBL CANDIDATES].ADDRESS, [TBL CANDIDATES].PHONE1, [TBL CANDIDATES].PHONE2, [TBL CANDIDATES].TYPE_OF_WORK
FROM [TBL CANDIDATES]
WHERE ((([TBL CANDIDATES].ID) Like "*" & [forms]![Candidate Search Form]![txtcriteria6] & "*") AND (([TBL CANDIDATES].CANDIDATE_NAME) Like "*" & [forms]![Candidate Search Form]![txtcriteria2] & "*") AND (([TBL CANDIDATES].ADDRESS) Like "*" & [forms]![Candidate Search Form]![txtcriteria4] & "*") AND (([TBL CANDIDATES].PHONE1) Like "*" & [forms]![Candidate Search Form]![txtcriteria3] & "*") AND (([TBL CANDIDATES].PHONE2) Like "*" & [forms]![Candidate Search Form]![txtcriteria5] & "*") AND (([TBL CANDIDATES].TYPE_OF_WORK) Like "*" & [forms]![Candidate Search Form]![txtcriteria] & "*"));
Thanks for reading.
Ams
I have a simple database in access 2007. It contains only one table.
I have a form called qryAll. From this form the user can enter criteria for a query that queries all of the fields in a table. (so you can query with criteria from more that one field)
Anyway this all works fine. I imported data into the database from excel, some 900 records and with these records the query works as expected.
Now I notice when I add a new record, It wont appear in query results. Even if I search for it by its ID, yet it appears in the table.
This has me stumped. Im no advanced user. I have tried clicking 'refresh all' but it makes no difference. Ive been searching for some time now for a solution and now I seek your help!
If it helps, I went into the query and went to SQL view. See below.
SELECT [TBL CANDIDATES].*, [TBL CANDIDATES].ID, [TBL CANDIDATES].CANDIDATE_NAME, [TBL CANDIDATES].ADDRESS, [TBL CANDIDATES].PHONE1, [TBL CANDIDATES].PHONE2, [TBL CANDIDATES].TYPE_OF_WORK
FROM [TBL CANDIDATES]
WHERE ((([TBL CANDIDATES].ID) Like "*" & [forms]![Candidate Search Form]![txtcriteria6] & "*") AND (([TBL CANDIDATES].CANDIDATE_NAME) Like "*" & [forms]![Candidate Search Form]![txtcriteria2] & "*") AND (([TBL CANDIDATES].ADDRESS) Like "*" & [forms]![Candidate Search Form]![txtcriteria4] & "*") AND (([TBL CANDIDATES].PHONE1) Like "*" & [forms]![Candidate Search Form]![txtcriteria3] & "*") AND (([TBL CANDIDATES].PHONE2) Like "*" & [forms]![Candidate Search Form]![txtcriteria5] & "*") AND (([TBL CANDIDATES].TYPE_OF_WORK) Like "*" & [forms]![Candidate Search Form]![txtcriteria] & "*"));
Thanks for reading.
Ams
Last edited: