M
Michelle
Hello all!
I'm trying to write a make table query using the table "Portfolio" to pull
out only the end of month data. For example, the Portfolio table is set up
something like this:
Date | Security | Amt
7/31/08 | A | 10
7/31/08 | B | 20
7/31/08 | C | 30
..
..
..
8/28/08 | A | 10
8/28/08 | B | 20
8/28/08 | C | 30
8/29/08 | A | 10
8/29/08 | B | 20
8/29/08 | C | 30
I want the query to create a new table that only pulls out:
Date | Security | Amt
7/31/08 | A | 10
7/31/08 | B | 20
7/31/08 | C | 30
8/29/08 | A | 10
8/29/08 | B | 20
8/29/08 | C | 30
There are also holidays to consider. I'm not opposed to writing VBA code to
do this, but I really don't know where to start. (I'm also very new to SQL,
if you can explain well I can probably pull that off if need be. ^_~) I've
seen postings that take care of pulling out one month's data, but not
anything that would allow me to skip through the months to the last day I
have data for. Please let me know if I have been unclear about anything, and
I'll be happy to clarify. Any help would be greatly appreciated. Thanks!
I'm trying to write a make table query using the table "Portfolio" to pull
out only the end of month data. For example, the Portfolio table is set up
something like this:
Date | Security | Amt
7/31/08 | A | 10
7/31/08 | B | 20
7/31/08 | C | 30
..
..
..
8/28/08 | A | 10
8/28/08 | B | 20
8/28/08 | C | 30
8/29/08 | A | 10
8/29/08 | B | 20
8/29/08 | C | 30
I want the query to create a new table that only pulls out:
Date | Security | Amt
7/31/08 | A | 10
7/31/08 | B | 20
7/31/08 | C | 30
8/29/08 | A | 10
8/29/08 | B | 20
8/29/08 | C | 30
There are also holidays to consider. I'm not opposed to writing VBA code to
do this, but I really don't know where to start. (I'm also very new to SQL,
if you can explain well I can probably pull that off if need be. ^_~) I've
seen postings that take care of pulling out one month's data, but not
anything that would allow me to skip through the months to the last day I
have data for. Please let me know if I have been unclear about anything, and
I'll be happy to clarify. Any help would be greatly appreciated. Thanks!