Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Data Source - Data Report Designer

 
   Database Help (Home) -> Visual Basic -> DAO RSS
Next:  DAO reference / Access 2007  
Author Message
Thom

External


Since: Mar 10, 2008
Posts: 5



(Msg. 1) Posted: Mon Mar 10, 2008 1:41 pm
Post subject: Data Source - Data Report Designer
Archived from groups: microsoft>public>vb>database>dao (more info?)

Is there a way to change the Database Source at run time in the Microsoft
Data Report Designer? If so. How?

 >> Stay informed about: Data Source - Data Report Designer 
Back to top
Login to vote
Ralph

External


Since: Jan 28, 2008
Posts: 31



(Msg. 2) Posted: Mon Mar 10, 2008 4:12 pm
Post subject: Re: Data Source - Data Report Designer [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Thom" <Thom.TakeThisOut@discussions.microsoft.com> wrote in message
news:32D9D546-E32D-4BB0-8E6A-CE761AD2310A@microsoft.com...
> Is there a way to change the Database Source at run time in the Microsoft
> Data Report Designer? If so. How?

Yes.
Just reset the DataSource Property

Set DataReport1.DataSource = rs
DataReport1.Show

Are you perhaps using DE?
If so remove the DataMember property from any bounded controls in the report
and and make your change in the Initialize Event...

-ralph

 >> Stay informed about: Data Source - Data Report Designer 
Back to top
Login to vote
Thom

External


Since: Mar 10, 2008
Posts: 5



(Msg. 3) Posted: Mon Mar 10, 2008 4:12 pm
Post subject: Re: Data Source - Data Report Designer [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm using DE. I found the Initialize event. But I need to change the
DataSource that is mapped to the DE Connection. Can I change the connection
in DE at run time using code? If not, then I will change to DOA as soon as I
can figue out how. I am using DB open and close throughtout my program, and I
would like to do it here also. I will try DB Open and RS open in the
initialize event in the Data Report. Now, I have to figure out how to map to
the RS fields. Is there a help in MSDN any place?

Thanks. With your help I know I will get there.

"Ralph" wrote:

>
> "Thom" <Thom.TakeThisOut@discussions.microsoft.com> wrote in message
> news:32D9D546-E32D-4BB0-8E6A-CE761AD2310A@microsoft.com...
> > Is there a way to change the Database Source at run time in the Microsoft
> > Data Report Designer? If so. How?
>
> Yes.
> Just reset the DataSource Property
>
> Set DataReport1.DataSource = rs
> DataReport1.Show
>
> Are you perhaps using DE?
> If so remove the DataMember property from any bounded controls in the report
> and and make your change in the Initialize Event...
>
> -ralph
>
>
>
 >> Stay informed about: Data Source - Data Report Designer 
Back to top
Login to vote
Thom

External


Since: Mar 10, 2008
Posts: 5



(Msg. 4) Posted: Mon Mar 10, 2008 4:12 pm
Post subject: Re: Data Source - Data Report Designer [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

GOT IT! In Initialize event of Data Environment:
Conection1.Connectionstring = App.Path & "DB Name"

THANKS RALPH!

"Thom" wrote:

> I'm using DE. I found the Initialize event. But I need to change the
> DataSource that is mapped to the DE Connection. Can I change the connection
> in DE at run time using code? If not, then I will change to DOA as soon as I
> can figue out how. I am using DB open and close throughtout my program, and I
> would like to do it here also. I will try DB Open and RS open in the
> initialize event in the Data Report. Now, I have to figure out how to map to
> the RS fields. Is there a help in MSDN any place?
>
> Thanks. With your help I know I will get there.
>
> "Ralph" wrote:
>
> >
> > "Thom" <Thom.TakeThisOut@discussions.microsoft.com> wrote in message
> > news:32D9D546-E32D-4BB0-8E6A-CE761AD2310A@microsoft.com...
> > > Is there a way to change the Database Source at run time in the Microsoft
> > > Data Report Designer? If so. How?
> >
> > Yes.
> > Just reset the DataSource Property
> >
> > Set DataReport1.DataSource = rs
> > DataReport1.Show
> >
> > Are you perhaps using DE?
> > If so remove the DataMember property from any bounded controls in the report
> > and and make your change in the Initialize Event...
> >
> > -ralph
> >
> >
> >
 >> Stay informed about: Data Source - Data Report Designer 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
unexpected error 80004005 opening a report from Designer i.. - I have a report that was working fine. I added a textbox and now it doesn't work. You can't add a datalink to a textbox without the underlying field being present. And I found the solution, so here it is........... The field for the textbox was 255..

Can't Make Data Connection - I'm getting a bit frustrated. 1) I want to evaluate Access 2007 Beta but can't install it and posting the question concerning this produces no rewsponse from these geniuses. 2) Going to abandon Access 2003 and use some other database or programming..

Strange Data Control problem - Hi all, if anyone can shed some light on this I'd be very happy! I have an large application which uses the DAO version that is loaded on the users system (normally 3.6). There are currently over 300 users of the application and it would appear that....

Using Jet data control to write numbers to an excel spread.. - Hi, I'm currently using the vb data controls to write numbers to excel spreadsheets using the Jet driver. Unfortunately, even though the data being sent to the spreadsheet is numbers, excel has a nasty habit of showing them as text, requiring them t...

Connect Data Control to Access 97 secured DB via MDW file .. - Re VB 6.0 & Access 97 I am using the MS Data Control on a form which I need to refresh each time the user enters criteria. The DB is secured via an MDW file. Could someone please provide an example, using DAO, with a solution to connect the Data..
   Database Help (Home) -> Visual Basic -> DAO All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]