I am a novice Access user so forgive me if this is something simple or built in somehow, but how do I make a ship to is same as bill to checkbox?
example
// this is a mock function
function copyBillingAddress(){
objForm.ship_add1.setValue(objForm.bill_add1.getValue());
objForm.ship_add2.setValue(objForm.bill_add2.getValue());
objForm.ship_zip.setValue(objForm.bill_zip.getValue());
objForm.ship_city.setValue(objForm.bill_city.getValue());
objForm.ship_state.setValue(objForm.bill_state.getValue());
}
You could then call this function when the box is checked.
<INPUT
TYPE="Checkbox"
NAME="isShipBillAddy"
VALUE="Yes"
onClick=
"if(objForm.isShipBillAddy.getValue()=='Yes') copyBillingAddress();"
>
example
// this is a mock function
function copyBillingAddress(){
objForm.ship_add1.setValue(objForm.bill_add1.getValue());
objForm.ship_add2.setValue(objForm.bill_add2.getValue());
objForm.ship_zip.setValue(objForm.bill_zip.getValue());
objForm.ship_city.setValue(objForm.bill_city.getValue());
objForm.ship_state.setValue(objForm.bill_state.getValue());
}
You could then call this function when the box is checked.
<INPUT
TYPE="Checkbox"
NAME="isShipBillAddy"
VALUE="Yes"
onClick=
"if(objForm.isShipBillAddy.getValue()=='Yes') copyBillingAddress();"
>