I wrote this quickly in JavaScript. You can place this code in the exit event of your dropdown box. You need to set the text box and the table properties to hidden before you write the code. For simplicity, I only put 4 values in the drop down box. The || is the "OR" statement in JavaScript. I tested this code and it should work for you.
If you select the first or second selection in the dropdown, the table will appear. If you select the 4th choice, the textbox will appear. If you select the third option, nothing will happen.
if (this.rawValue == "4"){
form1.Page1.TextField4.presence = "visible"
form1.Page1.Table5.presence = "hidden"
}
else if (this.rawValue == "1" || this.rawValue == "2"){
form1.Page1.TextField4.presence = "hidden"
form1.Page1.Table5.presence = "visible"
}
else {
form1.Page1.TextField4.presence = "hidden"
form1.Page1.Table5.presence = "hidden"
}