Results 1 to 9 of 9
  1. #1
    dargo72 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2012
    Posts
    53

    Trying to get button to perform 2 functions

    Hello,



    I have a for with a "submit" button on the bottom. When someone clicks the button I want to copy the form data to another table, and erase/delete to data from the original table, so the form is blank again.

    I can do one or the other, but not both.

    Help?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Why do that? It is easy to make the Form blank without deleting the data in the RecordSource of the Form.

  3. #3
    dargo72 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2012
    Posts
    53
    Quote Originally Posted by RuralGuy View Post
    Why do that? It is easy to make the Form blank without deleting the data in the RecordSource of the Form.
    Well, I'm not sure how to do that, but I wanted to make it so someone could not see others people's entries, nor change their entry after submital.... I am open to suggestions....

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Each Form has a DataEntry property that when set True (Yes) will *only* display New records. As soon as the newly added record is saved the first time the form will no longer display that record.

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by RuralGuy View Post

    ...As soon as the newly added record is saved the first time the form will no longer display that record...
    Well, not exactly, Allan! After the Record is saved it will continue to be shown until that session of Access is closed, so it will be gone when anyone else opens the Form!

    You had any snow up there yet? Amazingly, trees are already turning down here in Virginia, and I was cold walking the dog this morning!

    Linq ;0)>

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by Missinglinq View Post
    Well, not exactly, Allan! After the Record is saved it will continue to be shown until that session of Access is closed, so it will be gone when anyone else opens the Form!
    Linq ;0)>
    Are you sure about the Linq? How about if the form is in single view and you move to the next record? Doesn't it basically "disappear"?

    Quote Originally Posted by Missinglinq View Post
    You had any snow up there yet? Amazingly, trees are already turning down here in Virginia, and I was cold walking the dog this morning!
    Linq ;0)>
    No snow yet but plenty of rain right now. We started seeing color about two weeks ago. It barely gets into the high 40's at night. The humming birds left about two weeks ago. Stay cool buddy.

  7. #7
    dargo72 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2012
    Posts
    53
    Thanks to all. I was able to get it to work as intended.

  8. #8
    mrojas is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Sep 2013
    Location
    Concord California
    Posts
    72
    If solved, please flag it as such!

  9. #9
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Also, forum etiquette here, as elsewhere, dictates that when you find a solution, elsewhere, you post it! In this way, others searching here, with a similar problem, can benefit from your experience, and you go from being a taker to a contributor!

    Linq ;0)>

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

Similar Threads

  1. Using checkboxes to perform a search
    By zcrox69 in forum Forms
    Replies: 1
    Last Post: 05-16-2013, 01:18 PM
  2. Tricky calculation to perform
    By leeli67 in forum Access
    Replies: 122
    Last Post: 04-15-2012, 05:06 PM
  3. Query to perform percentage
    By mari_hitz in forum Queries
    Replies: 4
    Last Post: 04-10-2012, 10:56 AM
  4. SQL expression to perform a calculation
    By springboardjg in forum Queries
    Replies: 1
    Last Post: 05-20-2011, 06:57 AM
  5. Close Button Functions
    By Evgeny in forum Programming
    Replies: 3
    Last Post: 04-29-2010, 11:21 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