Welcome to Dream.In.Code
Become a VB Expert!

Join 149,960 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,344 people online right now. Registration is fast and FREE... Join Now!




IMAGES IN ACESS DISPLAYED ON VB FORM AND HOW TO PRINT?

 
Reply to this topicStart new topic

IMAGES IN ACESS DISPLAYED ON VB FORM AND HOW TO PRINT?, ADODC

halluzineyt
12 Jan, 2008 - 05:59 AM
Post #1

New D.I.C Head
*

Joined: 2 Jan, 2008
Posts: 10

Can you help me out is it possible to display some images stored in m.acess to my vb6 form using ado.. ???

and also after i have managed to complete my data base how can i transform it into a form and print it.

here is sum codes i have researched... pls check ..

CODE
  ******Code Example ********
ÿ ÿ Dim AppAccess As Access.Application
ÿ ÿ Dim DatabaseName As String
ÿ ÿ Set AppAccess = New Access.Application
ÿ ÿ On Error GoTo ErrorPrinting
ÿ ÿ
ÿ ÿ DatabaseName = App.Path + "\Millwood4.mdb"
ÿ ÿ AppAccess.OpenCurrentDatabase (DatabaseName)
ÿ ÿ AppAccess.DoCmd.OpenReport "Invoice", acViewNormal
ÿ ÿ AppAccess.CloseCurrentDatabase
ÿ ÿ Set AppAccess = Nothing
ÿ ÿ Screen.MousePointer = vbDefault
ÿ ÿ Exit Sub
ÿ ÿ
ErrorPrinting:
ÿ ÿ MsgBox "Error printing HortiInvoice: " & CStr(Err.Number) & Err.Description, _
ÿ ÿ ÿ ÿ vbInformation, "Error"
ÿ ÿ Err.Clear
ÿ ÿ Exit Sub
End Sub
' ***********END OF CODE EXAMPLE ***********


tnx
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 06:13PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month