Results 1 to 9 of 9
  1. #1
    sigmundlo is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    5

    Same contents in all rows

    I am very new to Access and I tried to make a project database based on one of built-in templates. Then I entered design view to add new columns, but the new columns wont work properly. When I enter data in my new column, it automatically fills all rows in that column with the same data. The other columns from the template works fine.


    Why is this happening?

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Do you have the correct value in the Control Source property? This sometimes happens when the text box is not bound to a column on the table.

  3. #3
    sigmundlo is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    5
    The control source is empty. So that's the problem? But I don't know what to put there, because it only lists up the other columns. Is it related to the columns in the table? Is it so that when I add a column in the design view, it's not added to the underlying table itself? Is it possible to add columns in a template table?

  4. #4
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I'm not sure what you are trying to do. The form is bound to a table (form properties: RecordSource) and each field on the form is bound to one of the columns on that table (control source). So if you do not bind a field on the form to a column on the table then it populates all records with the same value because it is meaningless to Access, just some data floating around. By putting a real column name into the control source property then it applies to that one record on the table and the data will be stored there.

    Are you trying to store the data or is there some other reason for having the field on the form?

  5. #5
    sigmundlo is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    5
    I want to add a column to the table, and I hoped that was done when I add a field in design view. I can't find any way to add a column to the table. If I create a table myself, I can add columns in the data sheet view, but with template tables I'm stuck. I'm sure it's possible somehow.

  6. #6
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I've never worked with template tables. If you can't make it look like you want it to then I would suggest creating your own table. Go to "Create" then table design. Copy all the fields from the template table and paste them into the new table design, then you can add any columns you want.

    Columns can only be added to tables manually or else using VBA code.

  7. #7
    sigmundlo is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    5
    Ok, thank you for helping! Then I will not fight more with the template. I hope it's easy to import the data from the template table into the one I will make myself then. My employeer handed me this database which is based on templates, and we need to add more columns to the tables...

  8. #8
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Here is a chance to learn about queries:

    Create a Make Table query, all it will be is bringing in the template table and making a table containing all the data from the template table (you can use the "*" to denote all fields). Then the table will be created for you and you can then add any new columns you want.

    You could also design the new table yourself and then use and Append query to append the old data.

    Then there is always the good old Copy and Paste!

  9. #9
    sigmundlo is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    5
    Thank you very much! That helped!

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

Similar Threads

  1. Replies: 2
    Last Post: 08-28-2011, 06:06 AM
  2. Replies: 0
    Last Post: 03-29-2011, 04:11 PM
  3. Copy contents of one field to another
    By 10 Gauge in forum Forms
    Replies: 4
    Last Post: 02-11-2011, 09:51 AM
  4. Copy Contents
    By SPKO in forum Forms
    Replies: 4
    Last Post: 11-03-2010, 10:26 AM
  5. Fields and their contents
    By Ham in forum Access
    Replies: 0
    Last Post: 02-06-2009, 07:34 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