[Edit] I didn't see the previously posted answer when I posted this.... :doh: [\Edit]
The first thing I noticed right off is that where you write
sql=String.Concat("SELECT * FROM MemberCollections WHERE MemberID='", Id.ToString(), " AND CollectionDate='", dtofcollection.ToString(), "'");
you forgot to put in the closing single quote after Id.ToString().
sql=String.Concat("SELECT * FROM MemberCollections WHERE MemberID='", Id.ToString(), "' AND ...
For the insert part see John Simmons answer.