Regardless of the time of day you decide to fly, the ticket price will remain around the same. Book flights from Dubuque to Buffalo as you normally would.
This is defined as Dubuque Airport (DBQ) and Buffalo Airport (BUF). Codes like Buffalo Airport are often used to just call airports uniquely.