Our '08 XC70 would not unlock with the key. I tried our other key with no luck. I even put a new battery in the key, no luck.

I used the emergency key and the car started and ran.

After the car ran, the regular key worked fine several times.

The next day, the key did not work - ran the car again, and again the key worked.

Then I tried the key every half hour or so - after two hours, the key would not work again.

Any suggestions?

As was mentioned by Klaus (I think) I will check and charge the battery.