Microsoft 365 and Office | Development | Microsoft 365 Developer Program
A free program from Microsoft that provides developers with the tools, resources, and sandbox environments needed to build solutions for Microsoft 365.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have two tables with OLE Object fields: SCHEDULE has a field named ColorTextBox. ColorsTable has a field named Color. The form ScheduleFormCont, based on the SCHEDULE table, has a Bound Object Frame control named ColorTextBox that displays the color from the SCHEDULE table.
I have the following code on a button of a form:
DoCmd.SetWarnings False
DoCmd.RunSQL "UPDATE SCHEDULE INNER JOIN ColorsTable ON SCHEDULE.ColorText = ColorsTable.ColorName SET SCHEDULE.ColorTextBox = [ColorsTable]![Color] WHERE SCHEDULE.SONo = [Forms]![ScheduleFormCont]![SONo];"
DoCmd.SetWarnings True
[Forms]![ScheduleFormCont]![ColorTextBox].OLETypeAllowed = acOLELinked
[Forms]![ScheduleFormCont]![ColorTextBox].Class = "Paint.Document"
[Forms]![ScheduleFormCont]![ColorTextBox].SourceDoc = "C:\Users\nevadamax\OneDrive\Documents\USWelding\" & Forms!ScheduleFormCont!ColorText & ".bmp"
[Forms]![ScheduleFormCont]![ColorTextBox].Action = acOLECreateLink
[Forms]![ScheduleFormCont].Requery
DoCmd.Close acForm, "AddColorForm"
The problems are:
Please help!?!?!?
A free program from Microsoft that provides developers with the tools, resources, and sandbox environments needed to build solutions for Microsoft 365.