here's some code. After reading some of the other postings, I think I understand it. I'm just looking for some clarification from someone who knows better than I:
sRegion = Replace(Session("Region"
, "'", "''"
sBranch = Replace(Session("Branch"
, "'", "''"
sBuilding = Replace(Session("Building"
, "'", "''"
sStreetAddress = Replace(Session("StreetAddress"
, "'", "''"
What I think this is doing is a check on the session variables called Region, Branch, Building, and Street Address. If there are any single apostrophes in the aforementioned variables (which incidentally are pulled from a database), then this code replaces them with an extra ' in order to prevent errors. Am I accurate?
thanks. How much water would there be in the ocean if it weren't for sponges?
sRegion = Replace(Session("Region"


sBranch = Replace(Session("Branch"


sBuilding = Replace(Session("Building"


sStreetAddress = Replace(Session("StreetAddress"


What I think this is doing is a check on the session variables called Region, Branch, Building, and Street Address. If there are any single apostrophes in the aforementioned variables (which incidentally are pulled from a database), then this code replaces them with an extra ' in order to prevent errors. Am I accurate?
thanks. How much water would there be in the ocean if it weren't for sponges?