Chat LIVE With Programming Experts! There Are 23 Online Right Now...

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

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




data report

 
Reply to this topicStart new topic

data report

emkaye
6 Jan, 2009 - 03:56 AM
Post #1

D.I.C Head
**

Joined: 12 Aug, 2007
Posts: 76



Thanked: 1 times
My Contributions
i have the ff codes for showing the data report but an error occurred...

CODE

Private Sub cmdView_Click()
qry = "SELECT * FROM tblResDet WHERE RES_CODE = " & Val(frmBook1.lblResNo.Caption) & ""
Set ShowItinerary = myConn.Execute(qry)


If ShowItinerary.EOF <> True Then
DataReport1.DataSource = ShowItinerary
Else
MsgBox "No record found.", vbCritical
End If

DataReport1.Refresh
DataReport1.Show

End Sub


the error says "method or data member not found" where the word "datasource" in my elseif statement is highlighted..

pls help and thanks in advanced...

User is offlineProfile CardPM
+Quote Post


reyben_89
RE: Data Report
7 Jan, 2009 - 07:46 AM
Post #2

D.I.C Head
**

Joined: 30 Nov, 2008
Posts: 54



Thanked: 2 times
My Contributions
i think the DataSource is does not match in the attribute that datareport1 required.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 04:32PM

Live VB Help!

Be Social

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

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month