golfortennis1
Member
- Local time
- Yesterday, 23:05
- Joined
- Jan 11, 2023
- Messages
- 43
You can easily join your current query to a new one with the Shot values in it giving you this:
Query1 Query1
ShotID RoundID_FK HoleID_FK Stroke Club Type Lie DistancetoPin ShotCalc1 BaselineStrokes 1 1 1 1d Tee Shot T 401T401 3.99 2 1 1 252W Approach F 103F103 2.81 3 1 1 3p Putt G 14G14 1.75 4 1 2 1d Tee Shot T 520T520 4.54 5 1 2 23w Approach F 243F243 3.47 6 1 2 356W Short Game S 20S20 2.53
I renamed Expr1 to ShotCalc1
Then you create a second query as
SQL:SELECT [qryShotData Query].*, tblShotValues.BaselineStrokes FROM [qryShotData Query] INNER JOIN tblShotValues ON [qryShotData Query].ShotCalc1 = tblShotValues.TypeandDistance;
After that, it gets a bit more interesting, as you need to perform the calculations based on the shot order for that round and hole, which will prove quite challenging.
Little steps...
Yeah, the math gets real interesting as you go further down, but as you say Baby steps.
How do I rename Expr1? Either I'm an idiot(wait, don't tell my wife), or Access isn't letting me do it.