Hi everyone, I have spent a few hours searching and cannot find an example that is similar enough for me to work with.
Is it possible to combine multiple rows by creating new columns? Searching the forum makes me believe it will take some VBA code.
What I have:
Number | person | email | phone | fax | Y/N | time
1 | bob | b.com | 123 | 123 | Y | 5:00
8 | bob | b.com | 888 | 888 | N |
4 | bob | b.com | 123 | 123 | Y | 5:00
1 | sue | s.com | 456 | 456 | N |
5 | sue | s.com | 456 | 456 | N |
What I'm looking for:
person | email | phone | fax | 1 | in_1 | 4 | in_4 | 5 | in_5 | 8 | in_8
bob | b.com | 888 | 888 | 5:00| Y | Y | 5:00 |NULL | N | N | Y
sue | s.com | 456 | 456 | N | Y |NULL | N | N | Y |NULL | N
It will take each different value in the number column and create a new column titles with the value.
It will update the phone and fax with the most recent value (The highest number in the number column will always be the most recent value.)
If the value is Yes, it will put the time instead of yes. If the value is no, it will put no.
If the person does not have a number that someone else has it will put no in the in_# column, else it will put yes.
This may take several queries to break the data apart better.
Any help would be greatly appreciated, I am new to access and have only created basic queries.
Is it possible to combine multiple rows by creating new columns? Searching the forum makes me believe it will take some VBA code.
What I have:
Number | person | email | phone | fax | Y/N | time
1 | bob | b.com | 123 | 123 | Y | 5:00
8 | bob | b.com | 888 | 888 | N |
4 | bob | b.com | 123 | 123 | Y | 5:00
1 | sue | s.com | 456 | 456 | N |
5 | sue | s.com | 456 | 456 | N |
What I'm looking for:
person | email | phone | fax | 1 | in_1 | 4 | in_4 | 5 | in_5 | 8 | in_8
bob | b.com | 888 | 888 | 5:00| Y | Y | 5:00 |NULL | N | N | Y
sue | s.com | 456 | 456 | N | Y |NULL | N | N | Y |NULL | N
It will take each different value in the number column and create a new column titles with the value.
It will update the phone and fax with the most recent value (The highest number in the number column will always be the most recent value.)
If the value is Yes, it will put the time instead of yes. If the value is no, it will put no.
If the person does not have a number that someone else has it will put no in the in_# column, else it will put yes.
This may take several queries to break the data apart better.
Any help would be greatly appreciated, I am new to access and have only created basic queries.
Comment