Print a record from a form

  • Thread starter Thread starter Brandon
  • Start date Start date
B

Brandon

I am a newbie to Microsoft Access. I have an Employee Database. In form
view I want to be able to select a certain record and print out that
record. If you can please tell me step by step on how to code this I
would greatly appreciated it.

Thanks
 
I am a newbie to Microsoft Access. I have an Employee Database. In form
view I want to be able to select a certain record and print out that
record. If you can please tell me step by step on how to code this I
would greatly appreciated it.

Thanks

You asked this question yesterday and it was correctly answered.

DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenReport "ReportName", acViewPreview, , "[RecordID] = " &
[RecordID]

Since you posted back in that thread that you are having a problem
with it, I can assure you it is not the code you were given. You
stated in that other thread that you receive a compile error. If so,
you have incorrectly written the code. Check your spelling, commas,
and make sure you change [RecordID] to the actual name of the control
used as prime key.
 
Back
Top