Results 1 to 2 of 2
  1. #1
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398

    Weird problem after splitting DB


    I've recently split a DB. I've attached two db's to show my problem.
    First use TestDBGood
    Within tbl Export New IPG Customers, their exists 44 new customers. These customers need to be inserted into individual tables based on the field "Acct Type".

    Within form frm Import Data, here is what my code is suppose to do:
    1. Create a recordset containing the customer data sorted by the "acct type" field
    2. Read first record
    3. Assign variables to all fields
    4. Check to see if this acct type matches previous acct type. Initially the variable is set to null
    5. With it being a new acct type, copies a table using a table template and assigns the table name to be associated with the acct type
    6. Adds the record to the new table
    7. Loop

    As an example, if this code runs properly, this is what the results should be:
    1. two tables named: IPG Cust - Other, IPG Cust - Retail
    2. table Other contains 3 records, table Retail contains 41 records.

    Now use TestDBBad
    What happens is all records are within both newly created tables, and they are also within the template table.

    Any suggestions would help!!

  2. #2
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398
    I solved my problem last night. In my further research, the problem was being caused by my copyobject command. I don't understand completely, but since the table I was using as the template was a linked table, Access would retain some of the properties for the new table. The easiest solution was to remove the link for the template file, then import the template file into the front end DB. It works perfectly.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Data Going Weird on Different Computer
    By Gary MacDonald in forum Access
    Replies: 5
    Last Post: 05-20-2011, 08:53 AM
  2. Weird Error
    By KevinMCB in forum Access
    Replies: 1
    Last Post: 02-16-2011, 02:23 PM
  3. Weird Form Control Problem
    By MWB in forum Access
    Replies: 3
    Last Post: 11-17-2010, 05:42 PM
  4. Weird Query results
    By UCBFireCenter in forum Queries
    Replies: 0
    Last Post: 10-06-2009, 03:38 PM
  5. problem in splitting Date and time fields
    By swaroop1012 in forum Queries
    Replies: 1
    Last Post: 11-22-2008, 11:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums