Results 1 to 4 of 4
  1. #1
    Pjameson is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    2

    If then Statements for a newbie

    Hi, I'm new to Access and I have to figure out how to handle an issue I'm having at work. I'm trying to format Access to autofill some data for me if certain situations apply. I will attach a pic below, but the basic principle is that IF both Serial No Top and Serial No Bottom in row 3 EQUALS the Serial No Top and Serial No Bottom from the row above THEN the Number of Cuts in row 3 will be autofilled with the Total Cuts number from the row above. This is to prevent our employees from distorting data for our system of blade tracking. I hope that makes some sense. Just asking because I have no idea or if it's even possible. Thanks.



    Click image for larger version. 

Name:	Untitled.jpg 
Views:	20 
Size:	51.6 KB 
ID:	7960

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    It's possible, can be tricky. Review:
    http://allenbrowne.com/ser-24.html
    http://support.microsoft.com/kb/210236
    http://support.microsoft.com/kb/210504

    It's also possible to retrieve the value of the previous record by query whenever needed for display on report, and not have to save to field in table, again, also very tricky.
    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
    Pjameson is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    2
    Quote Originally Posted by June7 View Post
    It's possible, can be tricky. Review:
    http://allenbrowne.com/ser-24.html
    http://support.microsoft.com/kb/210236
    http://support.microsoft.com/kb/210504

    It's also possible to retrieve the value of the previous record by query whenever needed for display on report, and not have to save to field in table, again, also very tricky.

    Let me check those out. I was assuming that it would be no easy task, but the more I try, the more familiar with it I will get. Thanks.

  4. #4
    dreday's Avatar
    dreday is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    58
    You can use the after update event as well on the 2nd number, so when you move on from that field it can check the 2 fields from the record before.

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

Similar Threads

  1. Replies: 1
    Last Post: 11-14-2011, 07:03 PM
  2. IIF() statements
    By ajetrumpet in forum Tutorials
    Replies: 0
    Last Post: 06-17-2011, 06:51 PM
  3. If statements
    By swagger18 in forum Programming
    Replies: 6
    Last Post: 01-28-2011, 08:13 PM
  4. IIF Statements
    By JDA2005 in forum Queries
    Replies: 8
    Last Post: 07-07-2009, 04:24 PM
  5. If statements
    By Ezeecopy in forum Access
    Replies: 0
    Last Post: 03-24-2009, 04: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