DataBase - Diagramm an Formular anpassen
Asked By Ronny Beyer
28-Jan-10 02:27 PM
Hallo,
ich habe ein Formular mit einem Diagramm (kein PivotChart) und m??chte, dass
dieses so breit und so hoch wie der Detailbereich des Formulares angezeigt
wird.
Ich habe es schon mit Anker in alle Richtungen, Zoomen bzw. Dehnen in den
Diagrammeinstellungen und auch mit
Me.Diagramm0.Width = Me.InsideWidth
Me.Diagramm0.Height = Me.InsideHeight - Me.Formularkopf.Height -
Me.Formularfu??.Height
probiert. Leider wird das Diagramm in allen F??llen nicht vollst??ndig
angezeigt.
Wie l??sst sich ein Diagramm wie von mir gew??nscht darstellen?
Danke und Gru??,
R. Beyer
PivotChart
(1)
Diagrammeinstellungen
(1)
Detailbereiches
(1)
Detailbereich
(1)
Eigenschaft
(1)
Richtungen
(1)
Formulares
(1)
RonnyRonny
(1)
Jens Schilling replied to Ronny Beyer
Hallo, ronny
Probiers mal so:
Zun?chst das Diagramm nach oben und Links ausrichten:
Me.Diagramm0.Left = 0
Me.Diagramm0.Top = 0
Die Breite des Detailbereiches (diese Eigenschaft gibt es nicht ) entspricht
der Breite des Formulares
Me.Diagramm0.Width = Me.Width
Zuletzt die H?he:
Me.Diagramm0.Height = Me.Detailbereich.Height
--
Gruss
Jens
FAQ: http://www.donkarl.com

DataBase Hallo Zusammen, ich w?rde gerne wahlweise beim ?ffnen eines Berichts entscheiden, ob der Detailbereich gezeigt wird oder eben nicht. Ist es m?glich den Detailbereich des noch unge?ffneten Berichts aus einem Formular heraus auszublenden und dann den Bericht zu ffnen? Oder andersherum, den Bericht ?ffnen und dann den Detailbereich ausblenden? Vielen Dank f?r Eure Hilfe. Viele Gr??e Patrick Access Discussions Section (1 Hallo Patrick! Dazu m?sstest du den Bericht im Entwurf ?ffnen und kannst dann die Eigenschaft Visible des Detailbereichs setzen. Diese L?sung funktioniert allerdings nicht in der Runtime. Das geht, du kannst den Bereich z.B. im Report_Open (Beim ?ffnen) ausblenden. Me.Section("Detailbereich").Visible = False Detailbereich" ggf. durch deine Benennung ersetzen!) Viele Gr??e aus Bremen, Stefan Hallo Stephan, ich m dann im Report_Open ausgewertet werden: Private Sub Report_Open(. . .) If Me.OpenArgs = "ausblenden" Then Me.Section("Detailbereich").Visible = False Else Me.Section("Detailbereich").Visible = True End If End Sub Vielleicht hilft das weiter? Stefan Hallo Stefan, ne schon
bestimmen? Gru? Michael Access Discussions DoCmd.OpenReport (1) XP (1) Seitenumbruch.Visible (1) LngTotalLinesInReport (1) Detailbereich.BackColor (1) LngTotalRecordCount (1) IntRecordsPerPage (1) DeineDatenTabelle (1) Hallo Michael! Das stimmt so nicht. Wenn hast du im Bericht sehr wohl einen Zugriff auf Me.Filter! Wo fragst du diese Eigenschaft denn ab? Im Report_Open() steht der Filter noch nicht fest, den bekommst du erst in hellgrau intLineNumber = 1 End Sub '- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Private Sub Seitenkopfbereich_Format(Cancel As Integer, FormatCount As Integer) '- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Me.Detailbereich.BackColor = lngBColor1 ' immer mit der gleichen Farbe beginnen End Sub '- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Private Sub Detailbereich_Format(Cancel As 0 Then Me!Seitenumbruch.Visible = True Else Me!Seitenumbruch.Visible = False End If If Me.Detailbereich.BackColor = lngBColor1 Then Me.Detailbereich.BackColor = lngBColor2 Else Me.Detailbereich.BackColor = lngBColor1 End If With Me If intLineNumber < lngTotalRecordCount Then SetFColor 0 .MoveLayout = True .NextRecord lngTotalRecordCount Then SetFColor 0 .MoveLayout = True .NextRecord = False .PrintSection = True ElseIf intLineNumber = lngTotalLinesInReport Then SetFColor .Detailbereich.BackColor .MoveLayout = True .NextRecord = True .PrintSection = True Else SetFColor .Detailbereich.BackColor .MoveLayout = True .NextRecord = False .PrintSection = True End If Hallo Michael K?nig! Wie wird
Reference PivotChart view properties? DataBase I can not find anything online about how to reference PivotChart view properties. In Microsoft Access 2007 you can open a form or even a query in PivotChart view. The four primary properties I would like to set programmatically using VBA are: 1 1) ObjDZN.WatermarkFont.Color (1) | I can not find anything online about how to reference PivotChart view | properties. | | In Microsoft Access 2007 you can open a form or even a query in | PivotChart view. | | The four primary properties I would like to set programmatically using | VBA are: | | 1 write SQL to a Querydef based on user input and then open that Querydef in PivotChart view using the users default chart of choice with the data already prepared in the I will ever be able to get it to work directly with a query in PivotChart view but I do have it working with a form in PivotChart view created at run time or it could be used with a previously created form
this. When you open a form you can open it to be viewed as a PivotChart. I would like to be able to programmatically manipulate the various properties of this view to this point 'So how do I grab the form attributes 'to manipulate them for PivotChart view? 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 'XXXXXXXXXXXXXXX NEED HELP HERE XXXXXXXXXXX 'The following are pretend attributes that 'do not I will ever be able to get it to work directly with a query in PivotChart view but I do have it working with a form in PivotChart view created at run time or it could be used with a previously created form new temp form DoCmd.OpenForm strFRM, acFormPivotChart, , , , acWindowNormal ' Work with the ChartSpace object for our PivotChart view! Set objCHR = Forms(strFRM).ChartSpace Set objCON = objCHR.Constants ' Category objCHR.SetData objCON.chDimCategories this. When you open a form you can open it to be viewed as a PivotChart. I would like to be able to programmatic
time-series DataBase I have time-series values generated from a query; user refreshes a PivotChart as they step through filters, and the PivotChart shows the time-series trends. Typical use I think. The query is sensitive to date current; others may query thousands of records over 70 years. So I am using a PivotChart chart type of Line ("Displays trend over time or categories.") to show this them individually the OLE tool was the same in Access. But maybe that is different from the PivotChart codebase - anyway, all's well ends well. Cheers! keywords: PivotCharts, , time-series description: I have time-series values generated from a query; user refreshes a PivotChart as they step through filters, and the PivotChart shows the time-series trend