Hi,
I have some difficulties to update table with the multi value record.
I look online but i can't find anything which will answer all question and point me in right direction.
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("Tbl_main")
rs.AddNew
rs![PO Number / Option] = Me.Option__PO_
rs!Style = Me.Style
rs![MKTGP Name] = Me.Marketing_Group
rs![Department Code] = Me.Department_Code
rs!Units = Me.Units
rs![Cartons / Sets] = Me.Cartons
rs![Date Rec in Processing] = Me.Date_Rec_in_Processing
rs![Processing Task] = Me.Porcessing_Task
rs![New PO] = Me.New_Option
rs![New Style] = Me.New_Style
rs!Processor = Me.Processor
rs![Processing Lane] = Me.Processing_Lane ' this is the field with multiple values.
rs![Processing Type] = Me.Porcessing_Type
rs!Consumable = Me.Consumable
rs![Consumables Rec Date] = Me.Consumables_Rec_Date
rs![Processing Status] = Me.Processing_Status
rs![Planned Completion Date] = Me.Planned_Completion_Date
rs!Comments = Me.Comments
rs![Intake Date / Request Date] = Me.Booking_Date
rs.Update
rs.Close
Set rs = Nothing
Set db = Nothing
DoCmd.GoToRecord , , acNewRec
When "rs![Processing Lane] = Me.Processing_Lane " is used to update the field in table no new record is added.
Is there any chance that someone can help with above?
Thanks,
I have some difficulties to update table with the multi value record.
I look online but i can't find anything which will answer all question and point me in right direction.
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("Tbl_main")
rs.AddNew
rs![PO Number / Option] = Me.Option__PO_
rs!Style = Me.Style
rs![MKTGP Name] = Me.Marketing_Group
rs![Department Code] = Me.Department_Code
rs!Units = Me.Units
rs![Cartons / Sets] = Me.Cartons
rs![Date Rec in Processing] = Me.Date_Rec_in_Processing
rs![Processing Task] = Me.Porcessing_Task
rs![New PO] = Me.New_Option
rs![New Style] = Me.New_Style
rs!Processor = Me.Processor
rs![Processing Lane] = Me.Processing_Lane ' this is the field with multiple values.
rs![Processing Type] = Me.Porcessing_Type
rs!Consumable = Me.Consumable
rs![Consumables Rec Date] = Me.Consumables_Rec_Date
rs![Processing Status] = Me.Processing_Status
rs![Planned Completion Date] = Me.Planned_Completion_Date
rs!Comments = Me.Comments
rs![Intake Date / Request Date] = Me.Booking_Date
rs.Update
rs.Close
Set rs = Nothing
Set db = Nothing
DoCmd.GoToRecord , , acNewRec
When "rs![Processing Lane] = Me.Processing_Lane " is used to update the field in table no new record is added.
Is there any chance that someone can help with above?
Thanks,