Duane,
As usual, you were right on the money. It got me to thinking about the code:
DoCmd.Maximize, I was not putting it where it was suppose to be. I was just
typing it in the "ON Open" property box. That is the reason for the error.
After reading your comments, In the "On Open" Property box I clicked on the
build button and it gave me a choice of expression builder, macro builder, or
code builder. I selected code builder and it took me to the code and placed
the curser in a specific spot. With my fingers crossed I typed in
Docmd.Maximize and closed the window. I closed the form and reopened it.
"Bam" It was Maximized. It works great!
Thanks again Duane for your guidance. "Your The Man"
I, also, have something further to report on the other problem I was having
about combining 5 different queries on 1 report. My alternative solution
worked great on the report, but when I opened the the original forms that
subform tool made the subforms from their graphics had been changed. It was a
mess. I corrected the changes to the forms and deleted the report and started
over.With your great advise in mind, I did it your cool way. I made the
original report the way I mentioned earlier and then minimized the windows to
take advantage of your drag and drop technique using the queries instead of
forms. The result was, it was much easier and faster to make the graphic
changes and placement of the labels and controls. The alignment and look of
the report is first class. No one would ever Know it was done that way. The
best part is nothing else changed and everything looks geat and works like a
champ.
Duane, I really appreciate you sharing your knowledge and you have my utmost
respect.
Have a Blessed Day,
jbeck2010
Duane Hookom said:
You are probably attempting to place a line of code into a property value.
To add code to an event procedure, click the drop down of the event property
and select [Event Procedure]. You can then click the [...] button to get to
the code window for that event.
To see how this might work, find the On Dbl Click event of the detail
section of a form. Drop down the list and select [Event Procedure]. Then
click the builder button [...] and change the code to look like:
Private Sub Detail_DblClick(Cancel As Integer)
MsgBox "You double-clicked the detail section", _
vbOKOnly + vbExclamation, "Dbl Click Event"
End Sub
Make sure you have a space to the left of the underscore in the MsgBox line
of code.
If you see responses in these news groups, most of the time we are
suggesting code entry.
--
Duane Hookom
MS Access MVP
jbeck2010 said:
Duane,
Thanks again for your additional information and encouragement.
I will definitely use your additional information on similar type reports.
Duane, you appear to be a very intelligent and knowledgeable Individual.
I really appreciate your help.
If you would be so kind as to help me with one more small problem.
I would like to have a form open and stay in maximized view.
I have tried a solution that was posted on the discussion group, but it
didn't work.
It was to type DoCmd.Maximize in the forms Open or Load event proceedure.
The result was that I received the following error message:
"Can't find the macro DoCmd."
The macro (or it's group) doesn't exist, or the macro is new but hasn't
been
saved.
Am I doing something wrong or not doing something else that I should be
doing.
Puzzled
jbeck2010