Psychobabble
Registered User.
- Local time
- Today, 05:05
- Joined
- Apr 26, 2003
- Messages
- 13
I'm really bad with queries. There's two I'm having problems with.
1) I want the value of a combo box to be made up of all the distinct entries in two seperate fields. The following query works, but it only gets values from .judge, not .judge2
SELECT DISTINCT Cases.Judge, Cases.Judge2 FROM Cases;
I tried:
SELECT DISTINCT Cases.Judge FROM Cases; SELECT DISTINCT Cases.Judge2 FROM cases
But it said there was text after the SQL operator and I tried replacing the semi-colon with a comma but that didn't work either.
I'm sure this is something simple, any ideas?
Something weird also happens with this lookup, it only gets new values if I save/quit the table and reload it. Is it possible to manually run the lookup?
2) I have a field "year" and a field "citation". The citation always begins with "[XXXX]" where XXXX is the year. Is it possible to have a query which automatically selects the year from "citation" and inputs it in the year field?
1) I want the value of a combo box to be made up of all the distinct entries in two seperate fields. The following query works, but it only gets values from .judge, not .judge2
SELECT DISTINCT Cases.Judge, Cases.Judge2 FROM Cases;
I tried:
SELECT DISTINCT Cases.Judge FROM Cases; SELECT DISTINCT Cases.Judge2 FROM cases
But it said there was text after the SQL operator and I tried replacing the semi-colon with a comma but that didn't work either.
I'm sure this is something simple, any ideas?
Something weird also happens with this lookup, it only gets new values if I save/quit the table and reload it. Is it possible to manually run the lookup?
2) I have a field "year" and a field "citation". The citation always begins with "[XXXX]" where XXXX is the year. Is it possible to have a query which automatically selects the year from "citation" and inputs it in the year field?