I have a unbound form that update the table with vba code by clicking a command button. One field on the table is called location. On the form I have the code field as combo box, once a value selected from the combo box the location text box populated with dlookup function.
How can I have the user change the location with inputbox and criteria to make sure the location is updated in the appropriate record is updated with the user input.
table fields
1. type
2. code
3. location
4. date
the criteria will look like this
if the inputbox has value entered then
update location field where combox = " whatever code is selected" and type =" Beginner"
else
do nothing.
end if
don't update if the input box is null if yes or ok clicked
thanks alot
How can I have the user change the location with inputbox and criteria to make sure the location is updated in the appropriate record is updated with the user input.
table fields
1. type
2. code
3. location
4. date
the criteria will look like this
if the inputbox has value entered then
update location field where combox = " whatever code is selected" and type =" Beginner"
else
do nothing.
end if
don't update if the input box is null if yes or ok clicked
thanks alot