Results 1 to 7 of 7
  1. #1
    Modify_inc is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    100

    Circular Reference using UCase(), Following a Video Tutorial

    I’m following a video tutorial for Access 2010 and am stumped at this one error that continues to popup.
    The lady performing the presentation shows every detailed step, so I’m certain I’m not missing anything.

    The example is a report in Access and she is demonstrating changing the FullName field to all uppercase. Should be pretty simple I would think.

    She says to go to Design View, select the FullName field, open properties, select Data tab, and then select the Control Source box.

    In the Control Source box, she mentions that it’s better to delete the name and start with an unbound field.

    I then open Expression Builder, and select the ‘Built-In Functions’, Select ‘Text’, followed by ‘UCase’.

    The Expression after entered correctly and exactly as she has hers is:

    UCase([FullName])

    I hit OK, and I immediately get the drop down error next to the FullName field, which informs me of the 'Circular Reference error'. If I continue and view the report, the FullName field list displays ‘#Type!’.

    I have googled the above error and understand basically what might be going on with my limited knowledge of Access, but what I don’t understand is how is it working for her and not for me!

    Anyone able to clue me in that has more knowledge of Access?



    Thanks
    Mike

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Give the textbox a name different from the field used in the expression. Another technique to show all characters as upper case is to use the Format property with the > character. Just enter that character into the bound textbox Format property and all characters in the textbox will display as upper case. This is only a display setting (as is using the UCase function in ControlSource expression) - it does not alter how the data is stored in table. The Format property alternative will not have circular reference conflict.
    Last edited by June7; 08-10-2012 at 10:49 AM.
    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.

  3. #3
    Modify_inc is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    100
    Quote Originally Posted by June7 View Post
    Give the textbox a name different from the field used in the expression. Another technique to show all characters as upper cause is to use the Format property with the > character. Just enter that character into the bound textbox Format property and all characters in the textbox will display as upper case. This is only a display setting (as is using the UCase function in ControlSource expression) - it does not alter how the data is stored in table. The Format property alternative will not have circular reference conflict.
    The > works great thanks for the tip.

    I'm not certain about your directions when you say "give the textbox a name different from the field used in the expression." Remember I'm completely new to Access.

    If I change the name in the textbox field, it also changes the name in the Control Source field, so I'm right back where I started, just with a different name.

    I'm sure I'm missing something here, because I'm not fully grasping how or what Access is doing behind the scenes.

    Mike

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    All controls (textbox, combobox, listbox, label, tab, line, box, subform/subreport, graph, etc) have a Name property. You can give each any name you want. Data controls (textbox, listbox, combobox) also have a ControlSource property (labels have a Caption). Sometimes a bound data control is created with the Name property set to the field name that the ControlSource property is bound to. Change the Name property to anything, like tbxFullName.
    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.

  5. #5
    Modify_inc is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    100
    Quote Originally Posted by June7 View Post
    All controls (textbox, combobox, listbox, label, tab, line, box, subform/subreport, graph, etc) have a Name property. You can give each any name you want. Data controls (textbox, listbox, combobox) also have a ControlSource property (labels have a Caption). Sometimes a bound data control is created with the Name property set to the field name that the ControlSource property is bound to. Change the Name property to anything, like tbxFullName.
    Thanks for the clear and concise directions.

    I was able to identify what I was doing wrong, no thanks to the lady in the video, she never mentions or shows this one critical step.

    I needed to go the the 'Other' tab on the 'Property Sheet' and change the name from there to something other than the default 'FullName' it was using.

    This is the second time she has done something that she missed a critical step, luckily the previous I was able to discern myself. Overall though she has been pretty helpful.

    If you know or recommend any other training videos for Access I would love to hear them.

    Thanks again for your assistance!

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    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.

  7. #7
    Modify_inc is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    100
    Quote Originally Posted by June7 View Post
    Just wanted to let let you know those links were very helpful, thanks again!

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

Similar Threads

  1. need Free tutorial
    By newtoAccess in forum Access
    Replies: 4
    Last Post: 10-26-2011, 12:00 PM
  2. VBA tutorial
    By gap in forum Programming
    Replies: 2
    Last Post: 07-14-2011, 07:34 AM
  3. Replies: 6
    Last Post: 06-27-2011, 07:11 PM
  4. Expression builder error, circular reference
    By cowboy in forum Programming
    Replies: 3
    Last Post: 07-15-2010, 12:55 PM
  5. Ucase
    By access2010 in forum Reports
    Replies: 1
    Last Post: 01-29-2010, 06:21 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