VictoryHighway
Technical User
Hello,
I'm trying to create a report that needs to dynamically change the row source of a combo box. In the Detail_format section of the VBA code, i put in the statement:
--
me.Combo38.rowsource = "SELECT [" & txtDeptAbbr & "Stages].[StagesID], [" & txtDeptAbbr & "Stages].[Stages] FROM " & txtDeptAbbr & "Stages;"
--
However, when I try to preview the report, Access gives me an error:
Run-time error '2191': You can't set the Row Source property after printing has started.
Is there any way to do this in a report? If not, I'll have to make a change to they layout of my tables to compensate.
Thanks for any help you can offer.
--Geoffrey
I'm trying to create a report that needs to dynamically change the row source of a combo box. In the Detail_format section of the VBA code, i put in the statement:
--
me.Combo38.rowsource = "SELECT [" & txtDeptAbbr & "Stages].[StagesID], [" & txtDeptAbbr & "Stages].[Stages] FROM " & txtDeptAbbr & "Stages;"
--
However, when I try to preview the report, Access gives me an error:
Run-time error '2191': You can't set the Row Source property after printing has started.
Is there any way to do this in a report? If not, I'll have to make a change to they layout of my tables to compensate.
Thanks for any help you can offer.
--Geoffrey