Page 4 of 4 FirstFirst 1234
Results 46 to 47 of 47
  1. #46
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,934

    This line makes no sense:

    Me.Product_ID = Me![Product Code] = True

    It tries to set the Product_ID field to the value False (because Product Code will never be equal to True) but that seems to fail and the value used in the DLookup is Null. I have no idea what that line is supposed to accomplish.

    Step debug. Set a breakpoint on that line and follow the code as it executes. Look at the values of controls and variables by hovering the cursor over them.

    Debugging guidelines in link at bottom of my post.

    Have you run Debug>Compile?
    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.

  2. #47
    Stephanie53 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    246
    ok i got it working again..i will be posting another issue as to not ruin this code as we orginially had it..it will have to do with inserting another field and how i would code it in that same code above..please look for it and see if you can help me out with that and i appriciate all your help :-)

Page 4 of 4 FirstFirst 1234
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 8
    Last Post: 11-13-2012, 03:36 PM
  2. Should I use the automatically created ID field?
    By Accessnoobee in forum Access
    Replies: 4
    Last Post: 09-28-2012, 11:16 AM
  3. Replies: 7
    Last Post: 08-08-2012, 03:28 PM
  4. Call a Field created from a Query?
    By Heatshiver in forum Queries
    Replies: 4
    Last Post: 04-03-2012, 11:50 PM
  5. New Field Name on Newly created query
    By inan25 in forum Queries
    Replies: 3
    Last Post: 05-13-2009, 09:05 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