Results 1 to 4 of 4

Thread: Right/Left function

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Heppenheim, Germany
    Posts
    4

    Post

    Dear all,
    everytime i use the Right or Left function i get the error "Datafield expected". I can remember that with SP2 for VB5 the function worked fine but now it doesn't why? To walk around that problem i'm always using the Mid function but i don't think that's a good solution.

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    Do you still get the error if you use VBA.Left() and VBA.Right() ?
    Mark
    -------------------

  3. #3
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Post

    do you know how to use the left function?

    Code:
    Dim myString As String
    
    myString = Left("Hello my name is David!", 5)
    'myString now = "Hello"
    
    'or for the right function
    
    myString = Right(""Hello my name is David!", 6)
    'myString now = "David!"
    understood

    if not email me ok

  4. #4
    Hyperactive Member tomcatexodus's Avatar
    Join Date
    Feb 2001
    Posts
    372

    Talking hehe...

    Check out how old this thread is! Look at the post date on the first post in this thread!..
    IWS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width