473,382 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Invalid Data Source

2
Hey People ..I have Invalid Data Source Warning when I preview VB data report
i am using ADODB recordset and SQL select starment.

Please help me healing this ERROR

thanks !!!
Dec 4 '06 #1
3 5538
fifeer
1
Hi KHD,
i have the same problem. if you had solved , can you please write to me.
thanks...
Dec 26 '06 #2
willakawill
1,646 1GB
Hey People ..I have Invalid Data Source Warning when I preview VB data report
i am using ADODB recordset and SQL select starment.

Please help me healing this ERROR

thanks !!!
Hi. You will, no doubt, be aware that the pundits who frequent these pages rarely, if ever, boast about their psychic powers. In order to overcome this tragic failing on our part, would you kindly post your offending code?
Thanks :)
Dec 26 '06 #3
KHD
2
Dear All,
here is the Function I am using to initializ the report

[code]Private Function InitReport() As Boolean

Dim rpt As Object
Dim rsRPT As New ADODB.Recordset

If Not err.Number = 8520 Then
Select Case State
Case 1: 'rptData
If Not txt_Field(0) = "" Then

Set rptData = Nothing

Set rsRPT = dbConnection.Execute("select Visits.* from visits where visits.Vis_no= " & Val(txt_Field(0)) & " order by Vis_No ")

Set rptData.DataSource = rsRPT
' rptdata.ReportWidth = 200
InitReport = True

Else: MsgBox "Error"
End If
End Select
Else
InitReport = False
End If

End Function[/CODE

Thanks in advance
Jan 6 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: tascien | last post by:
This code is NOT working. Well, the error is saying that the path is invalid. But how... Before i open the connection, i am doing, if f.Exists(file) then. so, if that returns true, why the...
2
by: Rubycon | last post by:
Hi all, can anybody tell me what he invalid parameter is in this code. When I try to execute the mmioDescendParent I get a returncode 11, meaning that an invalid parameter has been passed. I...
1
by: gane kol | last post by:
Hi I am using DES algorithm. I am getting an error message in a few cases of the querystring Error Message : Length of the data to decrypt is invalid. Error Method : System.String...
2
by: Brent Burkart | last post by:
Below is the error I am receiving. I have checked SQL Profiler and it is receiving the correct query which runs fine in Query Analyzer. Any ideas? Server Error in '/lockinsheet' Application....
3
by: John Howard | last post by:
Making the following call to a local MSAccess database works fine: Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs) Dim intRows As Integer Dim strSQL As String Dim ds As New...
2
by: Jerry Nelson | last post by:
I get the following error: WGA_Update is a view not a Table Invalid object name 'WGA_Update'. Description: An unhandled exception occurred during the execution of the current web request....
1
by: Hifni Shahzard | last post by:
Hi, I got a stored procedure, where it returns a value. But if I execute it. It gives an error as "Invalid cast from System.Int32 to System.Byte.". To make clear how do I execute this, below I'm...
2
by: js | last post by:
I got this error when I moved my application to a new Windows 2003 server. I installed and recompiled the 'Microsoft.Practices.EnterpriseLibrary - June 2005" then added these assemblies to the...
3
by: Nathan Sokalski | last post by:
I am recieving the following error on the second postback of a page I have written: The state information is invalid for this page and might be corrupted Stack Trace: ...
2
by: Nathan Sokalski | last post by:
I have a DataList in which the ItemTemplate contains two Button controls that use EventBubbling. When I click either of them I receive the following error: Server Error in '/' Application....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.