How long until I can hear or see a heart beat

Jen
Ended up in the emergency room last night because I was spotting and cramping really bad. They did a sonogram but could not find or hear the heartbeat. How long until we can hear or see the heartbeat? The doctor me the spotting could have been implantation bleeding. I am 6 weeks and 2 days today and still cramping but not spotting anymore.