473,385 Members | 1,154 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,385 software developers and data experts.

How to set Data Source property for Data Report?

Ali Rizwan
925 512MB
Hi all,
I m usnig this command to set datasource property to datareport.

Expand|Select|Wrap|Line Numbers
  1. DR.DataSource = "DE"
But it is not working.

Note: I dont't want to set this property from data report i want to set it manually, programatically.

VB6

Thanx all.
Nov 9 '07 #1
2 3816
9815402440
180 100+
hi

use following code

With datareport
.DataMember = ""
Set .DataSource = rstRecordset
end with


regards
manpreet singh dhillon hoshiarpur
Nov 9 '07 #2
Ali Rizwan
925 512MB
hi

use following code

With datareport
.DataMember = ""
Set .DataSource = rstRecordset
end with


regards
manpreet singh dhillon hoshiarpur
Thanx Manpreet.


Datasource problem is now removed but another problem occurs
Now how can i set datamember property of datareport i have used this command
Expand|Select|Wrap|Line Numbers
  1. DR.DataMember = "Command1"
i also try this one
Expand|Select|Wrap|Line Numbers
  1. set DR.DataMember = "Command1"
and also this one
Expand|Select|Wrap|Line Numbers
  1. set DR.DataMember = Command1
but nothing done but an error


Can yo please answer my thread Whats the problem with this code
You will find it on page 2.

Thanx a lot
Nov 9 '07 #3

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

Similar topics

2
by: Matt. | last post by:
Hi All! Is it possible to export an Access Report? Not the report that is produced when the report is run, but the actual framework, or source, of the report. I'm trying to debug a report I...
8
by: dixie | last post by:
I have a report with a subreport. The source object for this subreport varies according to the value of a field in a table. I am trying to programmatically set the object source for the subreport...
5
by: kotowskil | last post by:
A report has a subform. The subform is set to datasheet view and its RecordSource is a select query that includes a memo field from the source table. The memo field's Can Grow property is Yes,...
1
by: Peter Herath | last post by:
I have created a report using sample codes taken by the forum. one problem is that the report displays the field/column names in the table in columnar format(field names display in rows.) but i want...
8
by: Brock | last post by:
I am trying to populate a Crystal Report from data in my DataGrid. The reason for this is that I want the user to be able to change values without updating the database, but still have their report...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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.