Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VB6 und Access Report drucken

Empfohlene Antworten

Hi,

ich habe ein Applikation in VB geschrieben. Nun möchte ich über einen Button einen Access Report drucken...

Wie mach ich das? Z.Zt. steht mir keine Hilfefkt. zur Verfügung, sonst würde ich selbst nachsehen....

Gruß dev

Meinst du etwas wie:

Dim stDocName As String

stDocName = "BerichtName"

DoCmd.OpenReport stDocName, acNormal

  • Autor

Hört sich gut an, hatte ich auch schon dran gedacht... und mit welchem Projektverweis, also was muss ich noch einbinden? MS ActiveX 2.6 nutzt mir da ja nix. Wie gesagt, kann z.Zt. hier nicht nachsehen....

  • Autor

So klappts auch mit dem Nachbarn:


Private Sub PrintReport()


Dim lAccess As Object

Dim MsgBoxResult As VbMsgBoxResult

    On Error Resume Next

    Set lAccess = CreateObject("Access.Application")

    On Error GoTo 0

    If Err.Number = 0 Then


    MsgBoxResult = MsgBox("Möchten Sie eine Vorschau, bevor der Bericht gedruckt wird?" _

        , vbQuestion + vbYesNoCancel + vbDefaultButton2, "Vorschau")


            If MsgBoxResult = vbYes Then

                lAccess.OpenCurrentDatabase gMDB, False

                lAccess.Visible = True

                lAccess.doCmd.OpenReport "Telefaxformular", 2, "", ""

            Else

                If MsgBoxResult = vbNo Then

                    lAccess.OpenCurrentDatabase gMDB, False

                    lAccess.doCmd.OpenReport "Telefaxformular", 0, "", ""

                    lAccess.Quit

                End If

            End If

    End If


End Sub

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.