I have a report,which when run the user select their initial from a drop down box, which works great!
Now I have to automate the report(s) getting emailed each week. So I used the wizard and have a form w/command button which open the report. But it asks for the user initials. I want to hard code this so it doesn't prompt.
This is how the code reads:
Dim stDocName As String
stDocName = "rptInterimStatusByPerson"
DoCmd.SendObject acReport, stDocName
so I added
[Forms]![APQP]![UserId=BB], which doesn't work
[Forms]![APQP]![UserID] = "BB" , doesn't works
I've also tried various other code lines and it errors out.
HELP
Now I have to automate the report(s) getting emailed each week. So I used the wizard and have a form w/command button which open the report. But it asks for the user initials. I want to hard code this so it doesn't prompt.
This is how the code reads:
Dim stDocName As String
stDocName = "rptInterimStatusByPerson"
DoCmd.SendObject acReport, stDocName
so I added
[Forms]![APQP]![UserId=BB], which doesn't work
[Forms]![APQP]![UserID] = "BB" , doesn't works
I've also tried various other code lines and it errors out.
HELP