Results 1 to 2 of 2
  1. #1
    carissa7 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2018
    Posts
    10

    #Error message appears in access database form from code in expression builder


    Click image for larger version. 

Name:	Example 1.jpg 
Views:	7 
Size:	82.1 KB 
ID:	34020

    Anyone know why I'm getting a #Error message from access. I have the table set in the recordset of the form, so i don't need to make reference to the table in the expression builder. when i run the form it returns a #Error message, any help is appreciated thanks.

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    Possibly more than one problem with this. The first that comes to my mind is that you cannot say If A is something or Null. It has to be If A is something OR A IS Null...
    So you certainly have a 2 part problem; the second being that IsNull is for VBA and Is Null is for sql.
    EDIT:
    Should add that nothing is ever = to Null. Null is 'unknown' thus it cannot be compared to anything in any fashion.
    I'd also suggest you read up on how to name things. Your expression contains several examples of things you should not do.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 3
    Last Post: 05-12-2018, 06:59 PM
  2. Replies: 3
    Last Post: 01-12-2018, 11:54 AM
  3. macro, expression or code builder??
    By Jen0dorf in forum Access
    Replies: 5
    Last Post: 10-17-2015, 11:46 AM
  4. Replies: 5
    Last Post: 07-30-2014, 03:55 PM
  5. Replies: 1
    Last Post: 03-18-2014, 04:07 AM

Tags for this Thread

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