I have a database that produces a variety of reports stashed in a variety of tables. I also have a table in which I record standard email messages to accompany particular reports.
On one of my forms for a specific report I'd like to put a command button that opens frmEmail to [EmailID] = 8. That is - I want the same record every time; it's not in any way linked to the form that I'm on. (At present, I exit the current form; open frmEmail; scroll through the records to the appropriate email message.)
I'm thinking that this has to be one of the simplest bits of code going, but I can not get it to work. I've tried:
DoCmd.OpenForm "frmEmails", acNormal, "", [EmailID] = "8", , acNormal
On one of my forms for a specific report I'd like to put a command button that opens frmEmail to [EmailID] = 8. That is - I want the same record every time; it's not in any way linked to the form that I'm on. (At present, I exit the current form; open frmEmail; scroll through the records to the appropriate email message.)
I'm thinking that this has to be one of the simplest bits of code going, but I can not get it to work. I've tried:
DoCmd.OpenForm "frmEmails", acNormal, "", [EmailID] = "8", , acNormal