I am new to access and english is not my mother tounge, so i apologize if something is not clear in my description.
Background
I have one query (lets call i Q1) and I have two tables with identical structure.
Table 1:
- id
- iddesc
- comment
Table 2
- id
- iddesc
- comment
Table 1 consists of an imported xslx-file. The idéa with Table 2 is to use it to edit content. Sometimes only one field is edited in Table 2 and in those cases i need to get the other values from Table 1. Q1 should (but doesnt) generate something like this:
Q1:
- id [always from Table 1]
- iddesc [from Table 2]
- comment [from Table 1]
My question
How do i, in a query, check if data exists in a field in Table 2 and if it does, add data from that field and not from Table 1?
Background
I have one query (lets call i Q1) and I have two tables with identical structure.
Table 1:
- id
- iddesc
- comment
Table 2
- id
- iddesc
- comment
Table 1 consists of an imported xslx-file. The idéa with Table 2 is to use it to edit content. Sometimes only one field is edited in Table 2 and in those cases i need to get the other values from Table 1. Q1 should (but doesnt) generate something like this:
Q1:
- id [always from Table 1]
- iddesc [from Table 2]
- comment [from Table 1]
My question
How do i, in a query, check if data exists in a field in Table 2 and if it does, add data from that field and not from Table 1?