onefootout
Technical User
I'm really hoping this makes sense to someone.
I have a combo box in a form. It displays an address based on number. The number has five digits, each representing one address. If you want the address to display in the box, the corresponding number is 2, if not, the number is 1.
So, for instance, the atlanta address is the first digit, and you want it to display. The number would be 21111.
If you wanted boston, the 2nd digit, to be displayed as well, the number would be 22111.
Currently, to change this number, you have to do it manually in the table.
What I'm trying to do is have some check boxes so the user can change this themselves.
I'll have some yes/no controls on a form, and a button to run an update query. I was thinking something like this, but I don't know how to target one number at a time. I'm not really even sure you can use an update query for something like this.
UPDATE employer
SET Address[somehow target second digit] = '2'
WHERE [theform]![checkbox]=1
I have a combo box in a form. It displays an address based on number. The number has five digits, each representing one address. If you want the address to display in the box, the corresponding number is 2, if not, the number is 1.
So, for instance, the atlanta address is the first digit, and you want it to display. The number would be 21111.
If you wanted boston, the 2nd digit, to be displayed as well, the number would be 22111.
Currently, to change this number, you have to do it manually in the table.
What I'm trying to do is have some check boxes so the user can change this themselves.
I'll have some yes/no controls on a form, and a button to run an update query. I was thinking something like this, but I don't know how to target one number at a time. I'm not really even sure you can use an update query for something like this.
UPDATE employer
SET Address[somehow target second digit] = '2'
WHERE [theform]![checkbox]=1