Big surprise, right? A converted Macro doesn't work the same way in VBA?
I've got a Macro that will update a date field based on the users selection. As a macro, it works perfectly. However, I'm wanting to sign my database so I can rid my users of the Security Content warning whenever they open it. Using the .mdb format, I don't have the Publish option and as much as I would love to be in the 2007 file format, I can't due to some users not having Access 2007 on their stations.
Here is what was converted over from the Macro:
Any clues on what I'm doing wrong here? Again, this is in Access 2007 using the .mdb format. Also, this is used as an event procedure after the Report Type is selected.
I've got a Macro that will update a date field based on the users selection. As a macro, it works perfectly. However, I'm wanting to sign my database so I can rid my users of the Security Content warning whenever they open it. Using the .mdb format, I don't have the Publish option and as much as I would love to be in the 2007 file format, I can't due to some users not having Access 2007 on their stations.
Here is what was converted over from the Macro:
Code:
[Forms]![frmReports]![Due to J0] = Eval(IIf([Forms]![frmReport]![Report Type] = "A","B","C"),[Forms]![frmReport]![MajorRptDue],[Forms]![frmReports]![RptDue])
Any clues on what I'm doing wrong here? Again, this is in Access 2007 using the .mdb format. Also, this is used as an event procedure after the Report Type is selected.