You need the CustomerID field in both the tblCustomer and tblCustomerDetail tables so you can link the one customer record to the many details. Then both have to be type Long and the one in tblCustomer should be the primary key. In the detail, index the field with duplicates.
You did not give us enough to really help you, such as, where did this happen, in a query, running code, or opening a form?