Zum Inhalt springen

Empfohlene Beiträge

Geschrieben

Hi Leute,

wollte mal wissen wenn man dieses Datareport benutzt - welche ja soweit ich das gesehen hab über access funktioniert - ob da das Access auf dem rechner installiert sein muss?!?!

danke schon mal im voraus!

Cu Ronja

Geschrieben

With DataReport1

.Orientation = rptOrientLandscape

'We must set The DataReport source to nothing!

'Else DataReport wants to use its own Source

Set .DataSource = Nothing

' .DataMember = ""

'We Connect the DataReport to our Recordset Since

'we disallowed DataReport1 to use its own above

Set .DataSource = rsa.DataSource 'rsADOTable.DataSource

'Loop Thru the Controls in Section1 of the DataReport

'This binds the first textbox with the first field in the

'Recordset, etc...

With .Sections("Bereich1").Controls

For i = 1 To .Count

'Check to see if they are TextBoxes

If TypeOf .Item(i) Is RptTextBox Then

'The datamember should be always blank while creating dynamic data reports

.Item(i).DataMember = ""

'We are skipping the first feild in the database 'Primary Key'

'If we wanted to include it change the below line to

'.Item(i).DataField = rsADOTable.Fields(i-1).Name

.Item(i).DataField = rsaliste1.Fields(i - 1).Name

End If

Next i

End With

.Show ' Display Out DataReport

End With

das ist ne schleife die textfelder in einem datareport mit daten aus einem ado recordset füllt

gruß

phil

Erstelle ein Benutzerkonto oder melde Dich an, um zu kommentieren

Du musst ein Benutzerkonto haben, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen. Es ist einfach!

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde Dich hier an.

Jetzt anmelden

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...