I am still having a problem making it work. I am able to
get through two of the macros, but the third one does not
work correctly.
This is what I have so far:
Macro Name: mcrOnOpen
Condition: {blank}
Action: {blank}
This macro maximizes the form window:
Macro Name: {blank}
Condition: {blank}
Action: Maximize (This part works fine.)
This macro opens up a text box to enter in a country name
if outside the United States. "00" indicates a country
oustide the U.S.:
Macro Name: {blank}
Condition: [State]<>"00"
Action: SetValue
Item: [Forms]![frmIDandContactInfo]![SpecifyCountry].
[ColumnHidden]
Expression: True
Macro Name: {blank}
Condition: [State]="00"
Action: SetValue
Item: [Forms]![frmIDandContactInfo]![SpecifyCountry].
[Visible]
Expression: True
Macro Name: {blank}
Condition: ...
Action: StopMacro
Macro Name: {blank}
Condition: {blank}
Action: SetValue
Item: [Forms]![frmIDandContactInfo]![SpecifyCountry].
[Visible]
Expression: False
Macro Name: {blank}
Condition: [SpecifyCountry] Is Not Null
Action: SetValue
Item: [Forms]![frmIDandContactInfo]![SpecifyCountry]
Expression: Null {This macro also works fine.)
The following macro opens up a text box to enter in the
source of a phone number if a number is entered in
under "Other Phone". THIS MACRO ONLY WORKS IF THE TEXT
BOX FOR [STATE]<>"00". IT DOES NOT WORK IN INSTANCES
WHERE [STATE]="00".:
Macro Name: {blank}
Condition: [OtherPhone] Is Null
Action: SetValue
Item: [Forms]![frmIDandContactInfo]![SpecifyOtherPhone].
[ColumnHidden]
Expression: True
Macro Name: {blank}
Condition: [OtherPhone] Is Not Null
Action: SetValue
Item: [Forms]![frmIDandContactInfo]![SpecifyOtherPhone].
[Visible]
Expression: True
Macro Name: {blank}
Condition: ...
Action: StopMacro
Macro Name: {blank}
Condition: {blank}
Action: SetValue
Item: [Forms]![frmIDandContactInfo]![SpecifyOtherPhone].
[Visible]
Expression: False
Macro Name: {blank}
Condition: [SpecifyOtherPhone] Is Not Null
Action: SetValue
Item: [Forms]![frmIDandContactInfo]![SpecifyOtherPhone]
Expression: Null
Macro Name: {blank}
Condition: {blank}
Action: StopMacro
END OF MACROS
If "00" is entered under [State], then no text box will
open to specify the source of a number entered into
[OtherPhone]; however, if anything other than "00" is
entered under [State], then the third macro works just
fine. I'm sure that there is something wrong with one of
my conditions, but I'm new at this and can't figure it
out. Each macro works separately on its own. (Note:
When the second macro stand alone, it ends with a
StopMacro action. If I enter this action in the group of
macros, the third macro shuts down altogether.
I would really appreciate any further input you might be
able to provide!
Thanks!
Jennifer
-----Original Message-----
Try creating another macro that invokes the multiple macros you want, one at
a time, and set that new macro as the Event handler.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
.