Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295

    Join query is not updatable(maybe some exception).

    then you may use temporary table

  2. #17
    pav is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    12
    Quote Originally Posted by weekend00 View Post
    Join query is not updatable(maybe some exception).
    I found it not to be the case. Consider this simple query for example:

    SELECT dates.Date_DMY, qc1.rtime AS Running
    FROM dates LEFT JOIN qc1 ON dates.ID = qc1.edate;
    It produces this result
    DATE_DMY......RUNNING
    04.10.20........10.....
    05.10.20........17.....
    and it is updatabe.
    But the more complicated query
    SELECT dates.Date_DMY, qc1.rtime AS Running, qc2.stime AS Spinning
    FROM (dates LEFT JOIN qc1 ON dates.ID = qc1.edate) LEFT JOIN qc2 ON dates.ID = qc2.edate;
    which produces this result

    DATE_DMY......RUNNING......SPINNING
    04.10.20........10...............25......
    05.10.20........17........................
    is not updatable

  3. #18
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    Any Query that has only 1 to 1 relationships will be updateable. If there is no direct relationship or if there is a one to many relationship then the results of the Query will not be updateable.

    If you're looking for a way to emulate a Pivot Table, you can certainly do it, but no matter how you do it's going to take a lot of work. I know because I've just spent the better part of two weeks working on the same kind of thing.

    Your best bet is to go the Temporary Table route. Once you have the Temporary Table set up, you leave all the Form Objects "Unbound" and fill them in programmatically with the Form's On Load Event.

    Then you'll need to use the After Update or On Change Events of the various Form Objects to handle updates and changes to the Form.

  4. #19
    slave138's Avatar
    slave138 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    WI
    Posts
    233
    You can use joined queries in an update query as long as none of them are aggregate queries (which includes crosstab queries). If they are, you will need to output the query to a temp table and then use that table in the update query.

    Or at least that's what I keep getting for a response every I have problems with an Update query.

  5. #20
    pav is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2010
    Posts
    12
    Quote Originally Posted by slave138 View Post
    You can use joined queries in an update query as long as none of them are aggregate queries (which includes crosstab queries). If they are, you will need to output the query to a temp table and then use that table in the update query.

    Or at least that's what I keep getting for a response every I have problems with an Update query.
    In my example above, non of the queries are aggregate. The only difference between the first qurey (which IS updatable) and the second query (which is NOT updatable) is that an extra relation was added. That's what puzzls me

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 10-22-2022, 08:27 AM
  2. Replies: 3
    Last Post: 04-04-2010, 05:26 PM
  3. Pivot table graph form export to powerpoint
    By maati1980 in forum Forms
    Replies: 0
    Last Post: 10-22-2009, 02:59 AM
  4. Create PDF for each record in table/form
    By ChrisCMU in forum Forms
    Replies: 15
    Last Post: 07-28-2009, 01:52 PM
  5. Replies: 3
    Last Post: 06-01-2009, 01:41 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