I
Ian Smith
I understood you could not open a report in design view in
a .MDE file, so I reluctantly have multiple copies of
virtually identical reports to attend to minor variations
in sorting, grouping, and records source.
But I recently read that VBA can open in design view for
just such tweaking. It this true, 'cause it isn't working
for me.
This code works in .MDB, but fails in .MDE, saying the
feature isn't available in a .MDE.
MsgBox ("About to open report in design view")
DoCmd.OpenReport "Report1", acViewDesign
MsgBox ("Sucessful open in design view")
Reports!Report1.RecordSource = "Select * from
Query2"
DoCmd.OpenReport "Report1", acViewNormal
DoCmd.Close acReport, "Report1", acSaveNo
a .MDE file, so I reluctantly have multiple copies of
virtually identical reports to attend to minor variations
in sorting, grouping, and records source.
But I recently read that VBA can open in design view for
just such tweaking. It this true, 'cause it isn't working
for me.
This code works in .MDB, but fails in .MDE, saying the
feature isn't available in a .MDE.
MsgBox ("About to open report in design view")
DoCmd.OpenReport "Report1", acViewDesign
MsgBox ("Sucessful open in design view")
Reports!Report1.RecordSource = "Select * from
Query2"
DoCmd.OpenReport "Report1", acViewNormal
DoCmd.Close acReport, "Report1", acSaveNo