When close frmChangeRackNum, are you unloading that form or hiding that form? If you unload it, the RackNumber variable is lost, hence the blank string. This would not return an error, just a blank string.
Try
frmChangeRackNum.Hide
instead of
Unload frmChangeRackNum
Hope this helps,
Adam