Results 1 to 4 of 4
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    Bool missing creates error

    I'm trying to locate why a function gets an error in a table

    There is a related table that attaches to a show (trading company)

    If the show isn't attached to a trading company it can't get the BOOL value

    Since I don't know what past trading companies went with what shows - I get neither a yes nor no bool value

    my function tries to pass (I'm guessing here) a bool that it can't pull from since the show doesn't have a trading company and thus the field value true or false

    is there a function to detect when it is missing?



    Cheers

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    You need an outer join to show all trading companies, existing or not. THEN you can get a BOOL.

  3. #3
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    I found I had to pass the parameter as a variant (not as bool) else the ismissing() wouldn't work - sorted.

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    I don't think you use ISMISSING here. Params still work with outer joins.

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

Similar Threads

  1. Replies: 2
    Last Post: 09-10-2014, 11:30 AM
  2. Link to text file creates #Num! error on import
    By GregTheSquarePeg in forum Import/Export Data
    Replies: 8
    Last Post: 10-11-2013, 04:32 AM
  3. Replies: 3
    Last Post: 03-05-2013, 11:17 AM
  4. Replies: 2
    Last Post: 08-08-2012, 10:07 PM
  5. Replies: 6
    Last Post: 05-30-2012, 12:32 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