Hi,
What I am trying to do is quite simple, in excel at least so I have attached an Excel file where I show what I want to happen in access.
Here is a short explaination:
Field 1: Some of the (unique)values of a table called DDT_code will appear on one or several places in table DDT_Group_code, if it does appear on one or more places I want to mark it as "Yes" or something similar. Because then I know that it is a group mom.
Field 2: If the value of Field 1 is "Yes" then show the value of DDT_code (that means that DDT_Group_code for will always be blank), if the value of DDT_Group_Code and Field 1 is Blank the show the value of Sok_DDT.
Hmm this is quite dificult to explain even though it shouldnt be that difficult.
I have included an excel file which shows how the data flow should be, it is so easy to do in excel. I think the file should make it clear.
The thing is that I want to exlude All files (DDT_code) that is Not a Mom neither does it Have a Mom, In other words the files where both DDT_Group_code and then newly made field 1 is empty.
Thank you for your support, I am going crazy that I cant figure this one out.
Queries should not be a problem.