M
Mike375
Guest
As you can you see the following is part of a code block for inserting into Word bookmark
DoCmd.OpenForm "ProspectNotes", acNormal, "", "[NameNumber]=[Forms]![PrintandClose]![NameNumber]", acEdit, acNormal
Set WordRange = wordDoc.Goto(What:=wdGoToBookmark, Name:="a5")
WordRange.InsertBefore [Forms]![ProspectNotes]![ActdateComments]
What can I do when [ActdateComments] is null.
My only solution at present is to have two different modules and run them with a macro RunCode action and with conditions based on [ActdateComments]. The problem with that solution is there is more than just one field involved so I would need a bundle of modules.
DoCmd.OpenForm "ProspectNotes", acNormal, "", "[NameNumber]=[Forms]![PrintandClose]![NameNumber]", acEdit, acNormal
Set WordRange = wordDoc.Goto(What:=wdGoToBookmark, Name:="a5")
WordRange.InsertBefore [Forms]![ProspectNotes]![ActdateComments]
What can I do when [ActdateComments] is null.
My only solution at present is to have two different modules and run them with a macro RunCode action and with conditions based on [ActdateComments]. The problem with that solution is there is more than just one field involved so I would need a bundle of modules.