When I Add a OLEDocument to the CurrentRecord it works alright if strings are used:
However if I replace on of the Strings by a variable (String or variant) it does not work. Can anybody help?
Works:
maxrec.AddOLEDocument "File", "C:\myfile.doc", "MyDescription", 0, 0, 0, 0, 0
Does not work, but why?:
maxrec.AddOLEDocument "File", MyFile, "MyDescription", 0, 0, 0, 0, 0
Original Post