Results 1 to 10 of 10
  1. #1
    medube1 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    5

    Post the add new record is disabled

    Greetings,

    I am new to this forum, i have a form frmestablishment the problem i can't add new record(new record is disabled on navigation toolbar) in my form properties allow eddition is set to YES but still i have no luck in form view for add new record. The other part is that my form is based on a query in the query you can add new record.

    i hope my explanation is clear, please assist.

    Signor

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    medube1 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    5

    the add new record is disabled

    Quote Originally Posted by June7 View Post
    If you want to provide db for analysis, follow instructions at bottom of my post.
    Greetings,

    i have added an attachment to my problem so that it will be easy to pin point my problem, i hope i will help
    Attached Files Attached Files

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    This is a first for me - a 7-field compound key. The table joins in Relationship builder are messed up. I tried to fix and it insists on doubling the Structure table

    Why are the comboboxes all unbound?

    This is odd. The DataEntry property is Yes so this means should not be able to view existing records and should be able to only add new records. I think the issue is the query. Note that there are 32,180 records in Establishment but only 29,092 in the query because of the type of joins. Don't include Structure and Designation tables in the query. Could just bind the form directly to Establishment.
    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.

  5. #5
    medube1 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    5

    the add new record is disabled

    Quote Originally Posted by June7 View Post
    This is a first for me - a 7-field compound key. The table joins in Relationship builder are messed up. I tried to fix and it insists on doubling the Structure table

    Why are the comboboxes all unbound?

    This is odd. The DataEntry property is Yes so this means should not be able to view existing records and should be able to only add new records. I think the issue is the query. Note that there are 32,180 records in Establishment but only 29,092 in the query because of the type of joins. Don't include Structure and Designation tables in the query. Could just bind the form directly to Establishment.

    I want user's to add information within the form not manually on each table in
    datasheet view, this form is based on query with that combine 3 tables Establishment,Designation
    and Structure table. Firstly post_id,post_idlevel,postgrade devired from Establishment
    designation to designation table and cluster_name,unit_name, dept_name, branch_name, division_name,
    section_name and subsection_name into the Structure table. That's the only information that the user I want to add

    I hope this will help.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I did not suggest editing directly in tables. Use form but don't include Structure and Designation in the RecordSource. A form can enter/edit data to only one table.
    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.

  7. #7
    medube1 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    5
    I have been able to add new information but now I encounter a new error "index or primary key cannot contain a null value" while every field in a form have been entered.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Why are there two ID fields in Establishment with identical values, except one is text and one is number?

    Don't understand why error. I can enter new record in form after the change to RecordSource I described.
    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.

  9. #9
    medube1 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    5
    Quote Originally Posted by June7 View Post
    Why are there two ID fields in Establishment with identical values, except one is text and one is number?

    Don't understand why error. I can enter new record in form after the change to RecordSource I described.
    The Post_id is number PK and Post_idLevel is text PK(it can also contain characters).

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I know one is number and one is text, I just don't understand why you have both.

    I still don't get error.
    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: 5
    Last Post: 03-14-2013, 01:52 PM
  2. How to disabled Scroll Bar
    By djclntn in forum Forms
    Replies: 4
    Last Post: 12-04-2012, 01:41 PM
  3. Add New Button Disabled
    By qbc in forum Forms
    Replies: 6
    Last Post: 01-19-2012, 04:34 PM
  4. Search on a disabled field
    By NOTLguy in forum Forms
    Replies: 9
    Last Post: 01-02-2011, 04:58 PM
  5. Replies: 1
    Last Post: 10-21-2010, 12:02 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