I have the following vba code It is suppose to go in and search by the appointment field and it fills in others field based on the appointment number selected. This is two fold.
1) I need to add another field but I cannot figure out the columns and how they are associated.
I added txt.door but it is not populating.
2) This has a subform associated with it that I no longer want I just want the information from that subform (which in the same table) to update the table based on my updates. Every time a record is updated it creates a new record but I have it set to edits.
I am revising this database from a person that left the company, so I do not know how to edit her code.
Here is the entire code.
1) I need to add another field but I cannot figure out the columns and how they are associated.
I added txt.door but it is not populating.
2) This has a subform associated with it that I no longer want I just want the information from that subform (which in the same table) to update the table based on my updates. Every time a record is updated it creates a new record but I have it set to edits.
I am revising this database from a person that left the company, so I do not know how to edit her code.
Here is the entire code.
Code:
Option Compare Database
Private Sub Combo42_Change()
End Sub
Private Sub cbdAppointment_Change()
Me.txtApptDate = Me.cbdAppointment.Column(2)
Me.txtApptTime = Me.cbdAppointment.Column(3)
Me.txtCID = Me.cbdAppointment.Column(4)
Me.txtLoad = Me.cbdAppointment.Column(5)
Me.txtTrailer = Me.cbdAppointment.Column(6)
Me.txtCarrierName = Me.cbdAppointment.Column(7)
Me.txtShiptoName = Me.cbdAppointment.Column(8)
Me.txtDestinationCity = Me.cbdAppointment.Column(9)
Me.txtTotalCtns = Me.cbdAppointment.Column(10)
Me.bxFloorloadby = Me.cbdAppointment.Column(11)
Me.bxDestination = Me.cbdAppointment.Column(12)
Me.bxP_O = Me.cbdAppointment.Column(13)
Me.bxPalletize = Me.cbdAppointment.Column(14)
Me.bxApplyPros = Me.cbdAppointment.Column(15)
Me.bxPackingListtoPallet = Me.cbdAppointment.Column(16)
Me.bxPackingListtoTruckWall = Me.cbdAppointment.Column(17)
Me.bxPackingListtoLastCarton = Me.cbdAppointment.Column(18)
Me.bxAdditionalInstructions = Me.cbdAppointment.Column(19)
Me.txtDoor = Me.cbdAppointment.Column(20)
Me.bxPreload = Me.cbdAppointment.Column(21)
End Sub
Private Sub Combo46_Change()
End Sub
Private Sub Form_AfterUpdate()
End Sub
Private Sub Form_BeforeUpdate(Cancel As Integer)
End Sub
Private Sub Form_Load()
DoCmd.GoToRecord , "", acNewRec
End Sub
Private Sub Print_LoadSheet_Click()
End Sub
Comment