+ Reply to Thread
Results 1 to 4 of 4

How to store informatin in another table if button is pressed and record key presses.

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    South Africa
    MS-Off Ver
    Access, Excel 2010
    Posts
    52

    How to store informatin in another table if button is pressed and record key presses.

    Hi all,

    I have a form called (frm_process_premos_popup) with a button (cmdNotifyMember) that when pressed, it sends an email to the member letting him know that his information was updated.

    If I press the button (cmdNotifyMember), it must store the date and time in another table (tbl_email_count) in field ([dateemailsend]).
    It must also store the paynumber ([paynumber]) of the member on form (frm_process_premos_popup) to (tbl_email_count) in field ([emailsendto]).
    It must also count the number of emails sent to that specific member and display it on the form (frm_process_premos_popup) basically record key presses.

    Hopes it makes sense.
    Last edited by SGT; 09-12-2014 at 04:22 AM.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: How to store informatin in another table if button is pressed and record key presses.

    in the button on click event (in addition to the email)
    run append query to store the event
    run append query to store the paynumber (the query uses the form txtID to append)
    then run : txtCount = DCount("*",[personsEmail]) , to load the persons email count.

  3. #3
    Registered User
    Join Date
    11-17-2011
    Location
    South Africa
    MS-Off Ver
    Access, Excel 2010
    Posts
    52

    Re: How to store informatin in another table if button is pressed and record key presses.

    Sorry, can you be more specific please. What is append query?? I am still learning access.

    thanx for the reply so far.

  4. #4
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: How to store informatin in another table if button is pressed and record key presses.

    Append query adds data to the table
    Use the query wizard to built one.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Toggle Button on Workbook Open - value is True but button not pressed?
    By excelnat in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-03-2014, 11:23 AM
  2. [SOLVED] disable button after it has been pressed once
    By bos1234 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-16-2013, 12:53 AM
  3. [SOLVED] Toggle Button & getting the postion of the just pressed button
    By NugentS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2012, 11:58 AM
  4. Creating a macro which presses a button containing a recorded macro
    By petros89 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2005, 10:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1