V
Victoria
hello
I'm a new coder who could use an assist. I don't know if its appropriate to
ask 2 questions in the same post, but here goes...
My subform has 3 textboxes in which data can be entered, and several locked
text boxes that contain calculated values based on the three unlocked ones.
a) After each entry, I want all the calculated values to be immediately
updated. Everything seems to work OK, but I'm wondering if I'm safer to
requery just to make sure all the updates are always made? Is this
necessary? If so, which control(s) get requeried? (the data entry one or the
calculated ones) I don't want to use Me!Requery because the subform seems to
always go back to the 1st record.
b) When I've entered data in the 3 textboxes then tab again, I want to
return to the first box of the same record. (for the check cycle) I could
only get this to work by using a .SetFocus in the 3rd box's OnExit. When I
don't do this, the same record shows on the subform, but its textboxes look
empty. If I move to a new record then come back, the records are still there
(they didn't dissapear after all). Whats 'goin on here? Is my .Setfocus
approach the right one?
I'm a new coder who could use an assist. I don't know if its appropriate to
ask 2 questions in the same post, but here goes...
My subform has 3 textboxes in which data can be entered, and several locked
text boxes that contain calculated values based on the three unlocked ones.
a) After each entry, I want all the calculated values to be immediately
updated. Everything seems to work OK, but I'm wondering if I'm safer to
requery just to make sure all the updates are always made? Is this
necessary? If so, which control(s) get requeried? (the data entry one or the
calculated ones) I don't want to use Me!Requery because the subform seems to
always go back to the 1st record.
b) When I've entered data in the 3 textboxes then tab again, I want to
return to the first box of the same record. (for the check cycle) I could
only get this to work by using a .SetFocus in the 3rd box's OnExit. When I
don't do this, the same record shows on the subform, but its textboxes look
empty. If I move to a new record then come back, the records are still there
(they didn't dissapear after all). Whats 'goin on here? Is my .Setfocus
approach the right one?