Edit 10:17 22.1.2013
—
Confirmed on 1.4.7 survival, creative
—
Confirmed on 1.4.6 survival, creative
In day time you can right click on the bed and get the error "You can only sleep at night" from whatever is you maximal reach, however at night you can only right click on the bed (and go to sleep) from 3 block radius cantered on the bed block you click (not including the bed block itself).#######
#######
#######
###B###
###B###
#######
#######
#######
confirmed on 1.4.7.
However you can't get record stacks in game without using a inventory editor.