Results 1 to 5 of 5
  1. #1
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265

    I can't add new records to my form

    The attached Word file shows screen shots of what I am working with.



    1. Figure 1 shows the form I am working with. There are 12 records. If I have any record open, I can edit them and the underlying table will update. So far so good. But when I attempt to add a new record, I can't type anything in a field.

    2. The form above is based on a query called qryMembership. Figure 2 shows this query.

    3. Figure 3 shows a diagram of all of my tables and how they are related.





    A. When I try to enter something in the first two form fields (Parent and Gymnast), the status bar says these fields are Read-only. Why are they read only?

    B. I can successfully enter a number into the Class field. No problem there.

    C. When I try to enter something in the Tuition and Discount field, I get an error message: "Cannot add records; join key of table 'Membership' not in recordset. What does this mean?

    D. Total Tuition is also read-only. Why?


    If you would address each point above (except for B), this would really help me out a lot.
    Attached Files Attached Files

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Try adding MembershipID to the query.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265
    Quote Originally Posted by Bob Fitz View Post
    Try adding MembershipID to the query.
    I tried adding membershipID to the query. It didn't work.

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    You might try adding the PK's from the other tables to the query. You may also have to have controls on the form bound to them.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265
    Quote Originally Posted by Bob Fitz View Post
    You may also have to have controls on the form bound to them.
    I think this might be the answer. However, unfortunately I have since deleted (by accident) the tables I was working with. I just deleted the Parent table, but all other tables downstream were also deleted. Undoubtedly because referential integrity was enforced along with that option about deleting records.

    I will keep your suggestion in mind. Thank you sir.

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

Similar Threads

  1. Replies: 5
    Last Post: 12-21-2012, 11:05 PM
  2. Replies: 1
    Last Post: 07-26-2012, 10:51 AM
  3. Replies: 15
    Last Post: 04-17-2012, 01:42 PM
  4. Replies: 10
    Last Post: 01-10-2011, 07:52 PM
  5. Replies: 3
    Last Post: 03-25-2010, 12:31 PM

Tags for this Thread

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