Avatar billede nyholm Novice
10. november 2005 - 19:32 Der er 5 kommentarer og
1 løsning

Inverted question

I have table A and table B. I need to use an update question to give the field Avrakn in table B the value 2 for every record that is a exact match in table A and B. To find the exact match there are 4 fields in both tables that has to match. We can call them field1, field2, field3 and field4.
If I use the unmatch question I will get all records that does'nt match but I need the inverted result.
How can this be done?
Avatar billede terry Ekspert
10. november 2005 - 19:36 #1
make a query and add both tables now join ALL four fields. This find the records you want
Avatar billede terry Ekspert
10. november 2005 - 19:37 #2
now youi can change the query to an update querya nd just out 2 in the update to field
Avatar billede terry Ekspert
10. november 2005 - 19:38 #3
This will work because the query will be an INNER JOIN and this will only find records which exist in both sides of the join
Avatar billede nyholm Novice
10. november 2005 - 21:00 #4
Excellent!
Thank's Terry!
Avatar billede terry Ekspert
10. november 2005 - 21:02 #5
better place an answer then :o)
Avatar billede terry Ekspert
10. november 2005 - 21:16 #6
thanks Denis, have a good evening

mvh
Terry
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Dyk ned i databasernes verden på et af vores praksisnære Access-kurser

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester