Hi All,
I have searched this forum and have seen a few ideas but are not answering my question. My apologies if this is a duplication but I am stumped.
I have a form (client information main form) with a combo box (combo281) which is linked to the [agent code] field which once selected populates numerous fields automatically. (see below) This works perfectly.
Private Sub Combo281_AfterUpdate()
Me.[Region] = Me.Combo281.Column(4)
Me.[Brokerage Name] = Me.Combo281.Column(3)
Me.[Agent Name] = Me.Combo281.Column(2)
Me.[Broker Consultant] = Me.Combo281.Column(5)
Me.[Agent 13 Digit Code] = Me.Combo281.Column(6)
Me.[Agent Code Termination] = Me.Combo281.Column(7)
Me.[code status] = Me.Combo281.Column(8)
Me.[Retention] = Me.Combo281.Column(9)
Me.Combo281.Requery
End Sub
My problem is that my database contains about 18,000 records of clients and the above control I have only started using now so I need to be able to refresh all of the existing data. At present to update I have to go into each individual record and type in the [agent code] again for the rest of the data to update.
Is there a macro I could use or is my requery incorrect above.
Please help me as it will take forever to retype the [agent code] for all 18,000 records.
Thanks
Richard
I have searched this forum and have seen a few ideas but are not answering my question. My apologies if this is a duplication but I am stumped.
I have a form (client information main form) with a combo box (combo281) which is linked to the [agent code] field which once selected populates numerous fields automatically. (see below) This works perfectly.
Private Sub Combo281_AfterUpdate()
Me.[Region] = Me.Combo281.Column(4)
Me.[Brokerage Name] = Me.Combo281.Column(3)
Me.[Agent Name] = Me.Combo281.Column(2)
Me.[Broker Consultant] = Me.Combo281.Column(5)
Me.[Agent 13 Digit Code] = Me.Combo281.Column(6)
Me.[Agent Code Termination] = Me.Combo281.Column(7)
Me.[code status] = Me.Combo281.Column(8)
Me.[Retention] = Me.Combo281.Column(9)
Me.Combo281.Requery
End Sub
My problem is that my database contains about 18,000 records of clients and the above control I have only started using now so I need to be able to refresh all of the existing data. At present to update I have to go into each individual record and type in the [agent code] again for the rest of the data to update.
Is there a macro I could use or is my requery incorrect above.
Please help me as it will take forever to retype the [agent code] for all 18,000 records.
Thanks
Richard