Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    stanley721 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    32
    I'm about to throw in the towel, but it's eating at me. I made those corrections and the "TrackingNumber" on the form is not populating. I am going to try to send a screen capture video of things if that is possible.
    Attached Files Attached Files

  2. #17
    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
    The code I gave you needs to be in the Form_BeforeUpdate event, not in the Text53_BeforeUpdate event!

    My signature was chosen because it is very true:

    The Devil's in the Details!

    Linq ;0)>

  3. #18
    stanley721 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    32
    Yes, stupid mistakes and no attention to detail. I should have caught that. But now I get(see attachments), for Me.TrackingNumber = Format(Date, "YY") & "-001" in the beginning.
    Attached Thumbnails Attached Thumbnails Capture1.JPG   Capture2.JPG  

  4. #19
    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
    That would indicate that either the Textbox holding TrackingNumber is spelled something other than TrackingNumber, in the code, or the Table name is something other than "Record List." Does the Textbox name have an Underline character between Tracking and Number

    Tracking_Number

    or a Space between the two:

    Tracking Number

    Last possibility would be a Missing Reference.

    Linq ;0)>

  5. #20
    stanley721 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    32
    Don't know what it was because I checked everything. I went back to the code and re-wrote it and bam, it worked. I guess there is now way to get that tracking number to display prior to leaving that record add page? My people write the assigned tracking number on top of the filed hard copy. I know they can just look back one record, but it would be nice if it just showed up prior to leaving that record's page. But hey, I'm happy with that if it isn't possible. Thanks for the help, and now you can get back to your own work!

  6. #21
    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
    How about if you had a MessageBox pop up just prior to moving to another Record or closing the Form? that displayed the last ID Number?

    In the Form_BeforeUpdate event, after all other code (i.e. just prior to the Sub End line) enter this code

    Msgbox "Last Tracking Number was: " & Me.TrackingNumber

    Linq ;0)>

  7. #22
    stanley721 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    32
    Awesome. Thanks!

  8. #23
    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
    Glad you got it working!

    Linq ;0)>

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 01-31-2013, 06:29 PM
  2. Replies: 5
    Last Post: 12-14-2011, 02:37 PM
  3. Issues with Auto populated fields
    By denise1005 in forum Queries
    Replies: 3
    Last Post: 03-17-2011, 10:50 AM
  4. Auto Populated Field not Saving to Table
    By EstesExpress in forum Forms
    Replies: 4
    Last Post: 10-09-2009, 03:33 AM
  5. Access 2000 Auto Populated Fields
    By Cylena in forum Access
    Replies: 1
    Last Post: 05-18-2009, 07:50 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