Results 1 to 4 of 4
  1. #1
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131

    Append Data from new record in existing form

    I have a database where I need to append part of a new record to another table. But when I open the query with the link to the form that is open I cannot see the added record until it's saved to the open form. I tried to re-query the key ID field but that does not work. How do I do a re-query without the form requiring everything and then I am on the incorrect record? Hope this makes sense. Thanks in advance.

  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,544
    Not sure why you need to requery the form. To save new or edited values use:
    Code:
    If Me.Dirty =True Then
      Me.Dirty = False
    End If
    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
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131
    Thanks Bob, that was it. I pur the command in the after update on the last field that will trigger if the data needs to be copied. Is there a better place to put it like in the form on current?

  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,544
    Quote Originally Posted by tcheck View Post
    Thanks Bob, that was it. I pur the command in the after update on the last field that will trigger if the data needs to be copied. Is there a better place to put it like in the form on current?
    I don't think so. Certainly no good in the forms On Current event because that fires before any changes are made to data, unless of course, you have other code in the On Current event that changes data.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 11
    Last Post: 05-23-2012, 08:42 AM
  2. Replies: 2
    Last Post: 05-21-2012, 08:46 PM
  3. Replies: 5
    Last Post: 03-02-2012, 08:58 PM
  4. Replies: 4
    Last Post: 05-30-2011, 08:20 PM
  5. Replies: 0
    Last Post: 02-25-2011, 09:40 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