Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    moss lovell is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    6
    Cheers Colin

    I have had a look and ran it

    The one problem is where it finds the number of jobs sometimes the results could be Jobs 1-4 of 4 so the part where you have put strText1 = Mid(strText1, InStr(strText1, "Jobs 1-25 of ") + 13, 5)



    That would be different as sometimes there are only a few jobs showing

    But thanks anyway for your help

    Moss

  2. #17
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    Hi

    I did wonder about that. Also whether the number will ever reach 100,000

    I've updated it to check for output less than 5 digits.
    If so, it discards the last character, and rechecks until its just a number
    So e.g. 123?> becomes 123
    So as long as the string isn't something like 123?5 it will work

    Code:
    TestOutput:        If IsNumeric(Right(strText1, 1)) = False Then
                strText1 = Left(strText1, Len(strText1) - 1)
                GoTo TestOutput
            End If
    HTH
    Attached Files Attached Files
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #18
    moss lovell is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    6
    THANK YOU RIDERS

    A lot has been going on with this thread as I basically didn't know what I was doing.

    Riders52 has been answering the abundance of emails I have sent regarding this thread and has solved it for me. He hs looked at my data base and even tidied it up and added items to make it work better.

    The best thing of all he didn't get fed up with my questions and has been a great help (Mentor).

    I think that I jumped into the deep end with my project as this morning I now know that I need to learn more as I don't even understand relationships between tables and went straight into VBA.

    Again thank you. 5 Stars.

    Moss

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

Similar Threads

  1. Replies: 3
    Last Post: 09-22-2016, 11:16 AM
  2. Replies: 17
    Last Post: 08-09-2016, 07:15 AM
  3. Replies: 6
    Last Post: 07-27-2015, 10:23 AM
  4. Trying to find a value right of specific string with in text
    By weilerda in forum Import/Export Data
    Replies: 2
    Last Post: 10-18-2012, 12:58 PM
  5. get a specific data in a string
    By dada in forum Programming
    Replies: 2
    Last Post: 09-21-2010, 01:20 AM

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