Results 1 to 4 of 4
  1. #1
    albe_ACC is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    8

    Devil's form can not be edited!!!

    Hi guys!!
    I have a terrific question about a form! (I called it the "devil's form"!)

    I need to edit a specific field of the form, in order to insert a value for each line of the table visualized in the aforementioned form.

    I assume there's a problem with the query I use but...I can't get out of it!
    Is there a way the form can allow me to edit that field??

    I attach Satan himself here!



    Thank u very much for your time!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The RecordSource for the form is a query of the two tables but the tables are not related by a JOIN clause. The RecordSource is not updatable and that's why you can't edit the bound textbox. Probably should be a form/subform arrangement if these tables have a one-to-many relationship. I can't figure out what their relationship is, if they even have one. I think your database structure is fatally flawed.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    albe_ACC is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    8
    Thank you for your answer!!!!!!!

    I try to give you a more explicative example.
    I have:
    a table with dog names
    a table with owner names/ages
    a table that says the owner of each dog
    and i want to insert, through the form, the dog's age in the previous table.

    Even with a join, it does not work :S
    Is there any suggestion you would give me?
    Thank u again for your time and precious support!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    1. Need primary keys in Dogs and Owners tables. Since you are saving the names, the name fields can be primary keys. It is not good practice to use names as primary key. If you don't want keys (no table relationships) then don't include Dogs and Owners tables in the form RecordSource.

    2. Because you are saving names, don't need Dogs table in query (table has no other info). Include Owners table only because you want to show owner age. Query would be:
    SELECT [dog-owner].dog, [dog-owner].dog_age, Owners.Owner_name, Owners.Owner_age FROM Owners RIGHT JOIN [dog-owner] ON Owners.Owner_name=[dog-owner].owner;
    But if you want to include Dogs table, query would be:
    SELECT [dog-owner].dog, [dog-owner].dog_age, Owners.Owner_name, Owners.Owner_age FROM Dogs RIGHT JOIN (Owners RIGHT JOIN [dog-owner] ON Owners.Owner_name=[dog-owner].owner) ON Dogs.Dog_name=[dog-owner].dog;

    3. Put all the textboxes in the Detail section. Labels can go in Form Header.

    4. Dog and Owner textboxes should be bound to fields of Dog-Owner table.

    5. Set form to Continuous view.

    6. Cannot add new records to Dogs or Owners from this form setup.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-29-2011, 09:31 AM
  2. Control can't be edited
    By TracyBell in forum Database Design
    Replies: 11
    Last Post: 05-17-2011, 01:38 PM
  3. Access XP - trap 'The text is too long to be edited'
    By AccessPoint in forum Programming
    Replies: 2
    Last Post: 09-13-2010, 04:30 PM
  4. Adding 'Last Edited' Date
    By vCallNSPF in forum Forms
    Replies: 2
    Last Post: 12-16-2009, 04:36 PM
  5. form not letting records be edited
    By stuart rose in forum Forms
    Replies: 3
    Last Post: 09-02-2009, 04:22 PM

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