PC Review


Reply
Thread Tools Rate Thread

bind ado recordset to report in ac97

 
 
=?Utf-8?B?aG9tbWVy?=
Guest
Posts: n/a
 
      11th Apr 2006
Hi, everybody!

I know ac97 does not provide direct binding of an ado rs to a report. I want
to do it manually.
I have a form with a textbox and a button. On the button click event, I
passed the text box value to sql server and got a ado rs back.
My question is, am I able to pass the rs into the report, and in report's
open event wire up field by field like this
me!txtName.ControlSource = rs.fields("CustName")
....
Or do the data mapping in my form?

After all, is it possible to code this way? Any sample?

Thanks!

 
Reply With Quote
 
 
 
 
Douglas J Steele
Guest
Posts: n/a
 
      11th Apr 2006
As far as I know, it's not possible to do what you're trying to do.

You can use DAO to communicate with SQL Server.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"hommer" <(E-Mail Removed)> wrote in message
news:9DF26382-B19E-484A-958C-(E-Mail Removed)...
> Hi, everybody!
>
> I know ac97 does not provide direct binding of an ado rs to a report. I

want
> to do it manually.
> I have a form with a textbox and a button. On the button click event, I
> passed the text box value to sql server and got a ado rs back.
> My question is, am I able to pass the rs into the report, and in report's
> open event wire up field by field like this
> me!txtName.ControlSource = rs.fields("CustName")
> ...
> Or do the data mapping in my form?
>
> After all, is it possible to code this way? Any sample?
>
> Thanks!
>



 
Reply With Quote
 
=?Utf-8?B?aG9tbWVy?=
Guest
Posts: n/a
 
      11th Apr 2006
Thank you for your reply!

When I got the data back as a recordset in DAO, what is the best practice on
binding them to a report in ac97?

"Douglas J Steele" wrote:

> As far as I know, it's not possible to do what you're trying to do.
>
> You can use DAO to communicate with SQL Server.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "hommer" <(E-Mail Removed)> wrote in message
> news:9DF26382-B19E-484A-958C-(E-Mail Removed)...
> > Hi, everybody!
> >
> > I know ac97 does not provide direct binding of an ado rs to a report. I

> want
> > to do it manually.
> > I have a form with a textbox and a button. On the button click event, I
> > passed the text box value to sql server and got a ado rs back.
> > My question is, am I able to pass the rs into the report, and in report's
> > open event wire up field by field like this
> > me!txtName.ControlSource = rs.fields("CustName")
> > ...
> > Or do the data mapping in my form?
> >
> > After all, is it possible to code this way? Any sample?
> >
> > Thanks!
> >

>
>
>

 
Reply With Quote
 
Douglas J Steele
Guest
Posts: n/a
 
      11th Apr 2006
Use a pass-through query to get the data, and bind the query to the report.
While newer versions of Access will let you set the recordsource to a
recordset, Access 97 doesn't have that capability.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"hommer" <(E-Mail Removed)> wrote in message
news:8FAAD4C6-BD28-4845-BFEF-(E-Mail Removed)...
> Thank you for your reply!
>
> When I got the data back as a recordset in DAO, what is the best practice

on
> binding them to a report in ac97?
>
> "Douglas J Steele" wrote:
>
> > As far as I know, it's not possible to do what you're trying to do.
> >
> > You can use DAO to communicate with SQL Server.
> >
> > --
> > Doug Steele, Microsoft Access MVP
> > http://I.Am/DougSteele
> > (no e-mails, please!)
> >
> >
> > "hommer" <(E-Mail Removed)> wrote in message
> > news:9DF26382-B19E-484A-958C-(E-Mail Removed)...
> > > Hi, everybody!
> > >
> > > I know ac97 does not provide direct binding of an ado rs to a report.

I
> > want
> > > to do it manually.
> > > I have a form with a textbox and a button. On the button click event,

I
> > > passed the text box value to sql server and got a ado rs back.
> > > My question is, am I able to pass the rs into the report, and in

report's
> > > open event wire up field by field like this
> > > me!txtName.ControlSource = rs.fields("CustName")
> > > ...
> > > Or do the data mapping in my form?
> > >
> > > After all, is it possible to code this way? Any sample?
> > >
> > > Thanks!
> > >

> >
> >
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind a Form to a Recordset =?Utf-8?B?cHJvdG90eXBl?= Microsoft Access 3 25th Apr 2007 06:04 AM
repost - bind a virtual recordset to a report tina Microsoft Access Reports 10 10th Sep 2006 02:02 AM
bind a virtual recordset to a report tina Microsoft Access Reports 0 30th Aug 2006 02:23 PM
Bind Recordset to a MC++ Class =?Utf-8?B?c3RhbmxleQ==?= Microsoft ADO .NET 0 13th Jul 2005 04:56 PM
Access 2002: bind adodb recordset to listbox recordset property Craig Buchanan Microsoft Access Form Coding 2 1st May 2005 12:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:47 AM.