You should really review your understanding of molecules vs. compounds and ionic vs. covalent bonds before you really dive into this topic. You'll understand it a whole lot better.
A molecule by definition is series of elements connected by covalent bonds. In order for two elements to be covalently bonded (share electrons), the difference in their electronegativies cannot be too great. However, if the electronegativies ARE distinct enough as is the case in NaCl, we call that an Ionic Compound. An Ionic Compound is essentially a series of elements that are bonded by charges. In otherwords, electrons are no longer shared, but essentially yanked off the less electronegative atom (Na) and attached to the more electronegative atom (Cl).
There is an important distinction here. When you begin analyzing why say, the boiling point of NaCl is considerably higher than Water (H2O) for example, you have to analyze the bonds being made. NaCl is a lattice of charges. The positive charge of Sodium (Na) is strongly attracted to the negative charge of Chlorine (Cl). Ignoring for a moment the covalent bonds WITHIN a water molecule, each water molecular is connected to one another via a series of Van der Waals forces (look them up). These forces collectively are still considerably weaker than Ionic Bonds.
HOWEVER, if we were actually comparing the strength of an Ionic Bond vs. Covalent Bond, we would find they are relatively similar. Infact, you'll find that in a Network Solid (ie. Diamond), each carbon atom is connected entirely by covalent bonds, and therefore the compound as a whole has similar boiling points to most Ionic Compounds. But when we are referring to the boiling point of molecules, we are strictly looking at the Van der Waals forces. Likewise, for Ionic Compounds, we are looking at the Ionic Bonds.
In short, here's what you need to realize:
Ionic Bonds ~ Covalent Bonds >>>>>> Van der Waal Forces