Your button needs to save the record before trying to print it.
Try adding:
RunCommand acCmdSaveRecord
For more detail, see:
Print the record in the form
at:
http://allenbrowne.com/casu-15.html

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
>I have create a form for inputing data and within that form I have a
>button
[quoted text clipped - 4 lines]
> back in and print its ok. How can I commit the data to the table without
> closing the form