Results 1 to 7 of 7
  1. #1
    witooldas is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    13

    Form manipulation error

    Hi there,
    I have a problem with my split form. In databbase I have tables like:

    “Register of orders“ – holding Register_ID, Shop_ID, comments and etc..
    “Additional information” – holding ID, Register_ID, company and other info.
    “Data” – holding ID, Shop_ID, address and other info.

    When I create query which “select“Register of orders“ with “Additional information” table by Register_ID and creating splint form which show me [Register of orders].ID, [Register of orders]. Shop_ID, [Register of orders]. Comments, [Additional information].company and below table with all existing records. It works normally. I can add, remove or update records.


    But when I add to query which “select” “Register of orders“ with “Additional information” table by Register_ID, and “Register of orders“ with “Data” table by Shop_ID and trying to display [Data].adress, then I can’t remove, update or add record. Why?

  2. #2
    jgelpi16 is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544
    In your second query do you have a "Group By" in any of your "Total" rows?

  3. #3
    witooldas is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    13
    I used "left join"

  4. #4
    jgelpi16 is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544
    Are you writing SQL, or using the Query builder in Access? If you have any fields with a "Group By" as the "Total" property you will not be able to edit any records within those results.

  5. #5
    witooldas is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    13
    I used Query builder, but "Total" row is blank maybe something wrong with "Data" table? but if it not connected i can easily add, remove or update "Data" table...

    Code:
    SELECT
    [Register of orders].*,
    [Additional information].*,
    [Data].Adress
    FROM ([Register of orders] LEFT JOIN [Additional information] ON [Register of orders].ID = [Additional information].ID) LEFT JOIN [Data] ON[Register of orders].X = [Data].X;
    Quote Originally Posted by jgelpi16 View Post
    Are you writing SQL, or using the Query builder in Access? If you have any fields with a "Group By" as the "Total" property you will not be able to edit any records within those results.

  6. #6
    jgelpi16 is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544
    So in your second query you are using two separate tables, correct? If you are using two separate tables you need to setup a relationship between primary key fields in the "Relationships" area.

  7. #7
    witooldas is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    13
    All connections are correct I think i found the problem:
    "Data" table was created by import records from Excell file. So now i created a new "Data" table and by copy/paste insert all records and it work now with the same sql "select" i can and add/update/delete records

    Thanks

    Quote Originally Posted by jgelpi16 View Post
    So in your second query you are using two separate tables, correct? If you are using two separate tables you need to setup a relationship between primary key fields in the "Relationships" area.

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

Similar Threads

  1. date manipulation
    By lpsd in forum Access
    Replies: 3
    Last Post: 12-23-2010, 12:06 PM
  2. Getting #Name? error on form
    By cnstarz in forum Forms
    Replies: 4
    Last Post: 10-11-2010, 07:37 AM
  3. Query Random Number Column Manipulation
    By gmontano in forum Queries
    Replies: 4
    Last Post: 10-05-2010, 01:36 PM
  4. Form Manipulation examples
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-24-2010, 12:03 AM
  5. Query manipulation using VBA
    By benattal in forum Programming
    Replies: 0
    Last Post: 12-31-2008, 09:12 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