hi everybody-
it seems like my update query should work. the sql view seems logical.
but that might be up to discussion...lol...i'm a newbie!
UPDATE [Case], Issue SET [Case].IssueID = [Issue].[IssueID]
WHERE (([Case].[IssueDesc]=[Issue].[IssueDesc]));
i've got 2 tables, CASE and ISSUE.
.................................................. .............................
CASE
caseid issueid issuedesc
100 0 age
200 0 drugs
300 0 sex
ISSUE
issueid issuedesc
1 age
2 drugs
3 sex
.................................................. .............................
all of the "issueid" fields in CASE are "0."
can i write an update query so that the correct issueid numbers are
associated with the correct issue descriptions in the table, CASE?
so that after the query runs, the CASE table looks like this:
.................................................. .............................
CASE
caseid issueid issuedesc
100 1 age
200 2 drugs
300 3 sex
.................................................. .............................
in design view, i have the CASE and ISSUE tables, and i tried the
query:
UPDATE [Case], Issue SET [Case].IssueID = [Issue].[IssueID]
WHERE (([Case].[IssueDesc]=[Issue].[IssueDesc]));
Field: IssueID
Table: Case
Update To: [Issue].[IssueID]
Criteria: [Case].[IssueDesc]=[Issue].[IssueDesc]
when i clicked "view," it returned one row, caseid, with my 200+
fields i wanted to change from "0" to the correct number. but they all
still had "0."
it seems like it would be an easy enough thing to do, but maybe i've
overlooked something! entirely possible...lol...
RICK COLLARD suggested:
UPDATE Issue RIGHT JOIN Case ON Issue.IssueDesc = Case.IssueDesc SET
Case.IssueID = Issue.IssueID;
THANKS RICK!
i couldn't get it to work though. i'm new with using access and using
aql in access.
thanks everybody,
megan robertson