I have a ComboBox named PIDNO in a form named DWGNO. It lists all the drawing numbers in Table PID, under column named PID using RowSource:
SELECT DISTINCTROW [PID].[PID] FROM PID;
I need to create a command button to take the selected drawing number and place it in a record in a Table named MOC in a column named Drawings. Since multiple drawings will be listed in a single record, I need the buttton to keep the previous selected values and just add the new selection.
I have gotten this far...
DoCmd.RunSQL "UPDATE MOC SET MOC.Drawings = PIDNO.Value WHERE ([MOCNO] = Forms![MOCDWG]![MOCNO].Column(1));"
But it just replaces the existing value with the new value.
Thanks for a Great WebSite!
SELECT DISTINCTROW [PID].[PID] FROM PID;
I need to create a command button to take the selected drawing number and place it in a record in a Table named MOC in a column named Drawings. Since multiple drawings will be listed in a single record, I need the buttton to keep the previous selected values and just add the new selection.
I have gotten this far...
DoCmd.RunSQL "UPDATE MOC SET MOC.Drawings = PIDNO.Value WHERE ([MOCNO] = Forms![MOCDWG]![MOCNO].Column(1));"
But it just replaces the existing value with the new value.
Thanks for a Great WebSite!