Results 1 to 10 of 10
  1. #1
    sprovoyeur is offline Novice
    Windows Vista Access 2003
    Join Date
    Oct 2009
    Posts
    12

    Puzzling #Name? error


    I download the MS Task List template for Access 2007. I added a couple of fields to the Tasks table and now when I open the form I get a #Name? error in the "Open" field. The control source for the field reads "=IIf(IsNull([ID]),"(New)","Open")". I have not modifed it in any way. Really haven't done anything except added a couple of new fields to the table? And now when I double click on this function and then try to navigate away from this field I get "There was an error compiling this function" error. But I haven't changed anything? I don't get any of these errors in the unmodified version but I need to tweak it to fit our needs. I Googled the problem and looked at all the suggestions, ie, naming problems, deleted fields, etc, but none apply here? If anyone has any suggestions I would very much appreciate the feedback.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Fields do not have a ControlSource but a Control on a Form *does*, which makes what you said a bit difficult to read and understand. Do you have a CONTROL on your Form that displays the [ID] FIELD from the RecordSource of the FORM?

  3. #3
    sprovoyeur is offline Novice
    Windows Vista Access 2003
    Join Date
    Oct 2009
    Posts
    12
    My appologies for the confusion. Yes, the "ID" field is on the form. Then under that is a text box with the control source set to the IIF statement. This is how the template downloads from the MS website, only that one works. The form is a split form with bottom half displayed as a datasheet. This text box field is the first one on the left and will read "Open" for all populated records is populated and "New" if not(the last record). When open is clicked it brings up the detail for that record. The frustrating thing is that I know it is something I did to the database because the original template works fine. But I can catagrically say that I have not modified that text box or the ID field in any way. I haven't done that much to it but apparantly it was enough. Something I did has to be affecting it. I may have to just start with the original agian and try to backtrack but I'm holding out before I do that. Thanks again for answering.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You said you downloaded a 2007 Template but you use ac2003. Is this correct?

  5. #5
    sprovoyeur is offline Novice
    Windows Vista Access 2003
    Join Date
    Oct 2009
    Posts
    12
    I am using Access 2007.

  6. #6
    sprovoyeur is offline Novice
    Windows Vista Access 2003
    Join Date
    Oct 2009
    Posts
    12
    Some additional info. When I open Access, then open the form, the field says "#Name?". If I simply remove or add any field to the form and then open it, it works fine and no longer says "#Name?". If I save and then reopen Access we are back to square one and it doesn't work any more.

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You are getting strange results. I would start over. Do *NOT* make any changes to code while the debugger is running. It has been known to cause problems.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Did you want to change your profile so it shows you as using ac2007?

  9. #9
    sprovoyeur is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    12
    Thanks for getting back to me RuralGuy and sorry about the misinfrmation in the profile. I just changed it to relect what I am using. And I think you're right, I'm just going to start over and keep an eye on what I change. Thanks for your assistance.

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It could easily be some sort of corruption and next to impossible to pin down.

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

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