Have a look in this topic for the getdate() equivalents for start of previous month and end of previous month