Results 1 to 6 of 6
  1. #1
    Dclassen89 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    17

    Moving records from one table to another via button?

    I want to create a form based on a pending orders table that will move a record to a "confirmed orders" table. Both tables will have the same structure im just not sure if this is possible.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,743
    Why not 1 table and a Yes/No field
    eg ConfirmedYN with values
    Yes==Confirmed No====Pending

  3. #3
    Dclassen89 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    17
    Quote Originally Posted by orange View Post
    Why not 1 table and a Yes/No field
    eg ConfirmedYN with values
    Yes==Confirmed No====Pending
    Thats what I was thinking in the beginning I will do some testing with that as well. Edit: I think this will work actually I just need to get my form to filter on load to display only record which havent been confirmed with this yes/no selection.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,965
    Maybe a date/time field would be more informative.

    Name it ConfDate.

    If there is a date it is confirmed, if there isn't then it's pending.
    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
    Dclassen89 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    17
    All im having a problem with is getting the form based on this table to open from another form.

    Private Sub Command7_Click()

    DoCmd.OpenForm "Pending Sales", , , "Date Confirmed = Date Confirmed Is Null"



    End Sub

    Button wont work .

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,965
    Field names have spaces. Must enclose in [].

    Advise avoid spaces and special characters/punctuation (underscore is exception) in naming convention for all objects.
    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: 2
    Last Post: 01-02-2014, 03:05 PM
  2. Replies: 1
    Last Post: 10-20-2013, 06:37 PM
  3. Replies: 5
    Last Post: 04-12-2012, 05:20 AM
  4. Replies: 2
    Last Post: 06-17-2011, 04:26 PM
  5. Moving records from one table to another
    By donavan01 in forum Queries
    Replies: 1
    Last Post: 02-16-2011, 01:53 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