P
piscogirl
Hi All,
Here's my problem:
I'm using macro to do a Set Value in a field from another form. That
other form has to be open, and on the correct record, for the value to
appear correctly.
I thought I could start entering the record and then institute the
macro: include a "Save" line in the macro, sort by a time stamp and go
to the last record, and then open the other form to the correct record
based on what was open in my current form. Then I'd grab the values I
want and put them into my form, and close the other form.
But... it's consistently opening the record that was added before the
one I am currently adding, and setting the values to the ones on that
record, instead of the ones I want.
I've tried adding things like "GoTo New Record" and then "GoTo Last
Record" to try to trick Access into recognizing that the record I'm
working on should indeed be saved in the form's table. But, no luck.
To complicate matters, the form I have open is actually a subform, and
I have to include an OpenForm command in the macro for it even to
recognize that it's really being used. Could this be the source of my
problem?
My underlying goal is to set up a default value for the field which can
be overwritten manually. If changed, it should *not* change the value
in the other table. I'd welcome other ideas as to how to do this as
well.
Thanks so much, everybody!
- Melissa
Here's my problem:
I'm using macro to do a Set Value in a field from another form. That
other form has to be open, and on the correct record, for the value to
appear correctly.
I thought I could start entering the record and then institute the
macro: include a "Save" line in the macro, sort by a time stamp and go
to the last record, and then open the other form to the correct record
based on what was open in my current form. Then I'd grab the values I
want and put them into my form, and close the other form.
But... it's consistently opening the record that was added before the
one I am currently adding, and setting the values to the ones on that
record, instead of the ones I want.
I've tried adding things like "GoTo New Record" and then "GoTo Last
Record" to try to trick Access into recognizing that the record I'm
working on should indeed be saved in the form's table. But, no luck.
To complicate matters, the form I have open is actually a subform, and
I have to include an OpenForm command in the macro for it even to
recognize that it's really being used. Could this be the source of my
problem?
My underlying goal is to set up a default value for the field which can
be overwritten manually. If changed, it should *not* change the value
in the other table. I'd welcome other ideas as to how to do this as
well.
Thanks so much, everybody!
- Melissa