Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Quote Originally Posted by Micron View Post
    @Ridders (to clarify to whom)Naw, I don't think so. If property number requires brackets (and I agree it does), then so does Property Information. Seeing as how you have the tables and such, see if a second set of brackets fixes the problem.
    @Micron


    As previously noted by June in post 9, it works without [] around the table name! Very odd but true!
    Of course, it also works with the table name enclosed in []
    I had previously tested both in the Immediate window, but not in a form
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  2. #17
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Then what's causing the error message??

  3. #18
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    The fact that originally there was no [] around the field name which does require them.
    Why it should be different, I've no idea

    For interest, I also rechecked this, deliberately using a space in the appallingly named [Field Name]:
    Code:
    DLookup("[Field Name]", "Property Information", "[Property Number] = 2")
    That works only if the 2 sets of [] shown are included - once again the domain (table name) doesn't need them
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  4. #19
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    OK, I had to go back to your post 13 (I think). I mis-read and thought you were saying with brackets around both names that it was still failing.
    Switching from coffee to beer now as coffee obviously isn't helping.
    If that doesn't cure me, there is always Scotch in the cabinet.

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

Similar Threads

  1. Increment number field on button press.
    By Homegrownandy in forum Access
    Replies: 3
    Last Post: 03-11-2016, 05:54 AM
  2. Replies: 1
    Last Post: 10-16-2013, 09:41 AM
  3. Replies: 3
    Last Post: 06-21-2012, 05:25 PM
  4. Replies: 5
    Last Post: 11-12-2010, 12:10 PM
  5. How to Increment A Number Field
    By Advanced in forum Programming
    Replies: 3
    Last Post: 01-27-2010, 02:36 PM

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