Results 1 to 3 of 3
  1. #1
    NightWalker's Avatar
    NightWalker is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2016
    Location
    Midwest USA
    Posts
    253

    Object doesnt support this method error

    I have a report that is giving me the error "Object doesn't support this method"

    Here is the offending code.



    Code:
    txtPre1 = Forms!frm_343DataSheet.Controls!txtPre1 & " " & Forms!frm_343DataSheet.Controls!cboPreUnit1 & Forms!frm_343DataSheet.Controls!OHM
    if I remove the last concatenation it works like this:

    Code:
    txtPre1 = Forms!frm_343DataSheet.Controls!txtPre1 & " " & Forms!frm_343DataSheet.Controls!cboPreUnit1
    I don't understand why it will not let me add the last part. The last one is a label with the Ω symbol in it.

    Thank you for any help on this.
    Walker

  2. #2
    NightWalker's Avatar
    NightWalker is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2016
    Location
    Midwest USA
    Posts
    253
    Figured it out finally. Here is the correct code if you want to use the caption in a label.

    Code:
    txtPre1 = Forms!frm_343DataSheet.Controls!txtPre1 & " " & Forms!frm_343DataSheet.Controls!cboPreUnit1 & Forms!frm_343DataSheet.Controls!OHM.caption
    Because labels do not have a default like textboxes and comboboxes, you have to tell it you want to use the caption.
    Hope this helps someone else.

  3. #3
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Interesting! Thanks for posting the solution.

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

Similar Threads

  1. Replies: 4
    Last Post: 01-27-2012, 02:16 AM
  2. object doesnt support this property or method
    By lexygirl in forum Access
    Replies: 1
    Last Post: 12-15-2011, 03:45 AM
  3. Replies: 6
    Last Post: 11-18-2011, 03:46 PM
  4. Replies: 5
    Last Post: 08-05-2009, 04:07 PM
  5. Replies: 2
    Last Post: 02-28-2009, 03:31 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