Results 1 to 2 of 2
  1. #1
    jlgray0127 is offline Competent Performer
    Windows 2K Access 2000
    Join Date
    Oct 2011
    Location
    Central Illinois
    Posts
    187

    Updating a record with a value through a macro

    I have a simple form, which I am adding data into. The form's layout, represents a rack for storing material. Some locations in this rack, may contain a box that takes two locations. In this instance, I will skip the next box and then input the next part number.
    I would like, when I tab outta the box I skip, a macro to paste a text phrase in the empty box.
    Any thoughts on how to do this?


    Thanks!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    I don't use macros, only VBA. Could try the LostFocus or Exit event of the textbox.

    If IsNull(Me.textboxname) Then Me.txtboxname = "some phrase here".

    If the textbox is bound, the phrase will save to table.
    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. Carry value over to new record w/macro
    By bbrazeau in forum Programming
    Replies: 5
    Last Post: 10-27-2011, 09:00 AM
  2. Macro on New Record
    By blue4512 in forum Access
    Replies: 13
    Last Post: 06-09-2011, 10:13 AM
  3. Updating field goes to wrong record
    By chrismalan in forum Forms
    Replies: 7
    Last Post: 03-20-2011, 08:07 PM
  4. SQL not updating record
    By jgelpi16 in forum Programming
    Replies: 1
    Last Post: 01-27-2011, 10:42 AM
  5. updating a record
    By markjkubicki in forum Programming
    Replies: 18
    Last Post: 09-19-2010, 08:20 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