Results 1 to 4 of 4
  1. #1
    sireesha is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Oct 2012
    Posts
    50

    update after saving a form in the forms field to another tables filed

    in access 2007, I have a form in that when i save the form sold is yes so this sold field value is automatically update to other table's flag. after saving has been done in the form update to other tables field to yes. how




    please help me.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,945
    Why are fields in different tables dependent on each other?

    Run UPDATE query.
    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
    sireesha is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Oct 2012
    Posts
    50
    i have a purchase table and sale table. once sale is done from form i.e., when i click on save button in sales form . automatically update to purchase tables flag field would be yes. how please give me update query. is it possible to attach the query for embedded macro save button.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,945
    I don't know your data structure so can't be specific. I don't use macros, only VBA which would be something like:

    If Me.checkSold = True Then CurrentDb.Execute "UPDATE tablename Set fieldname=True WHERE fieldname=" & Me.ID

    I suppose you can have a saved Access query object and use macro to run the query.
    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: 6
    Last Post: 06-09-2012, 08:17 AM
  2. Query: Two tables With Yes/No Filed
    By Judasdac in forum Queries
    Replies: 6
    Last Post: 10-17-2011, 12:24 AM
  3. Replies: 10
    Last Post: 07-12-2011, 11:09 PM
  4. Replies: 5
    Last Post: 05-24-2010, 11:52 AM
  5. update tables via forms
    By jazoo in forum Forms
    Replies: 0
    Last Post: 09-16-2008, 05:54 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