Looks like you've got it in quotes, so its taking it literally, instead of as a variable? cn.Open("MM_advancewarranty_STRING")