D
Dan
I have a form that I print envelopes off of. I have it so
that I click the print button and it will print the
envelope and then select the last name and then bring up
the find/replace box so that I can just type the next
name that I need to find and print rather than clicking
on the field that I want to search and then back on the
search box. This is the code that runs when I click the
print button:
Dim stDoc As String
stDoc = "print"
DoCmd.RunMacro stDoc
Screen.PreviousControl.SetFocus
Me.Full_Name.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
I want it so that it will only run this code if the
find/replace box is open. Now if you click the print
button and the find/replace box is not open it prints the
form and then opens the find/replace box.
that I click the print button and it will print the
envelope and then select the last name and then bring up
the find/replace box so that I can just type the next
name that I need to find and print rather than clicking
on the field that I want to search and then back on the
search box. This is the code that runs when I click the
print button:
Dim stDoc As String
stDoc = "print"
DoCmd.RunMacro stDoc
Screen.PreviousControl.SetFocus
Me.Full_Name.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
I want it so that it will only run this code if the
find/replace box is open. Now if you click the print
button and the find/replace box is not open it prints the
form and then opens the find/replace box.