The Sun is 98 million miles away from the earth, and the moon is 250,000 miles away, even though the sun is further away its force on the earth is 175 times larger than the moons, but the moons tidal effect is larger than the suns tidal effect, due to the difference in the gravity field across the earth. *(LOL sorry if this doesn't even correlate to the question... I was never one for science or chemistry, but hope this helped.)*