Recent content by Jossy

  1. J

    How much of a performance impact does declaring variables / passing arguments have?

    Having worked with VBA for a few months I've now set myself the task of cleaning up a lot of messy code I wrote a long time ago. All my subs and functions are in one module and I want to structure them more neatly. This means separating them out into groups, putting them in different modules and...
  2. J

    Lookup the value from a previous record

    Great, thanks again CJ.
  3. J

    Lookup the value from a previous record

    As ever CJ - thanks. Will run 1-2 times per day depending on location of matches, e.g. Europe, US, Asia. The dupes were me not joining correctly - fixed this now. The hard coded values were necessary as otherwise I'd have had to have all the non-Djokovic player matches in there. So values...
  4. J

    Lookup the value from a previous record

    Hi CJ. Firstly - thank you so much for building this - it must have taken a while. I really do appreciate it. I've also learnt loads from looking at the table and query structures and reading the SQL, e.g. aliases, Nz functions to name a couple. Have a few questions if you don't mind? 1...
  5. J

    Lookup the value from a previous record

    Thanks CJ. Will have a look at doing it this way.
  6. J

    Lookup the value from a previous record

    Really appreciate this CJ, I really do. I've been working on the VBA this afternoon and managed to find a useful post from "asc" about half way down this page: https://forum.punterslounge.com/topic/71276-elo-access-function/page/2/ Interestingly his data looks like it is formatted in the same...
  7. J

    Lookup the value from a previous record

    Ok thanks. Will work out the best way to do this.
  8. J

    Lookup the value from a previous record

    Thanks CJ - really do appreciate your help. The data is normalised - it's a well structured third party product. The Excel is a copy and paste from a query of a few tables - the structure of which is very similar to yours :-) So I need to go the VBA route you reckon and build a table...? Okay...
  9. J

    Lookup the value from a previous record

    Thanks for picking up the mantle CJ. There will be two main outputs needed: 1. The ability to see the latest ELO rating for a given player. In this case it wouldn't be necessary to calculate all rows for all players. However, the way the calculation works it will probably be close to all...
  10. J

    Lookup the value from a previous record

    Completely understand and thanks for your help so far. Attached the file to this post.
  11. J

    Lookup the value from a previous record

    Hello again Isladogs. Mind if I take you up on that offer? This isn't related to the serialize function but is completely in line with the original post I made. Here goes... so I've used serialize to create a rank field for my data and I've now been looking at how I use this lookup a previous...
  12. J

    Errors with TOP 1 lookup on previous record

    Managed to figure this out using ISNULL: SELECT ELO_ranked_lookup_atp_small.Rank, ELO_ranked_lookup_atp_small.ID1, IIf(ISNULL((SELECT TOP 1, Dupe.ID2 FROM ELO_ranked_lookup_atp_small as Dupe WHERE Dupe.ID1 = ELO_ranked_lookup_atp_small.ID1 AND Dupe.Rank <...
  13. J

    Lookup the value from a previous record

    Will do. Thanks
  14. J

    Lookup the value from a previous record

    Started a new thread on something slightly different but related. Do I just put the link to the new thread here?
  15. J

    Errors with TOP 1 lookup on previous record

    Hi. I have a query I've built that produces three fields: Rank - 1, 2, 3 4 etc (sorted in descending order) ID1 - an identifier of a person, with duplicates ID2 - an identifer of a second person, with duplicates From this query I want to write a second query that selects both the first two...
Back
Top Bottom