Form record source...

Form record source...

Post by paul » Sat, 14 Jul 2001 22:25:45



In my previous 'JET' based existence I would assign SQL code to a forms
recordsource property to get it to show filtered records e.g.

me.recordsource = "SELECT * FROM tblXYZ Where Code=forms!MainForm!Code;"

where 'me' is a subform. Either this or I would use a query.

Now I have been informed that this is bad karma when dealing with SQL Server
and that I should use a View.  But Views don't have parameters, so I started
looking at sprocs.  All well and good, but I am unable to assign the
resulting recordset to any corresponding object on a form.

I've found a 'Recordset' property which appears to be totally undocumented,
but that only gives me some vague error about being an incompatible object.

Can anyone point me in the right direction?  Actually, come to think of it,
is there a good book that would help with Access Project programming?

Thanks in advance....Pablo

 
 
 

Form record source...

Post by Michel Wals » Sun, 15 Jul 2001 00:49:25


Hi,

You can take a look at kb article 301987 for more info about the recordset
property.

Hoping it may help,
Vanderghast, Access MVP


Quote:> In my previous 'JET' based existence I would assign SQL code to a forms
> recordsource property to get it to show filtered records e.g.

> me.recordsource = "SELECT * FROM tblXYZ Where Code=forms!MainForm!Code;"

> where 'me' is a subform. Either this or I would use a query.

> Now I have been informed that this is bad karma when dealing with SQL
Server
> and that I should use a View.  But Views don't have parameters, so I
started
> looking at sprocs.  All well and good, but I am unable to assign the
> resulting recordset to any corresponding object on a form.

> I've found a 'Recordset' property which appears to be totally
undocumented,
> but that only gives me some vague error about being an incompatible
object.

> Can anyone point me in the right direction?  Actually, come to think of
it,
> is there a good book that would help with Access Project programming?

> Thanks in advance....Pablo


 
 
 

1. Access 97 form record source

I cannot figure how to make a pass through query as the record source for
an Access 97 form. I am using SQL 6.5 as the back end for this application.
The "internal parts" of the forms have many stored procedures/pass through
queries and they work well. I want to make the actual form record sources
pass through queries so Access doesn't requery the back end tables
constantly.

Thanks.
--

College of Veterinary Medicine
WASHINGTON STATE UNIVERSITY

2. Left join problem **

3. Form Record Source = sproc, how pass parameter

4. Chinese Character Set

5. Access 97 form record source

6. Text longer than 4000 characters

7. Record Source for forms

8. vba x webservice x sql toolkit -> problem

9. How to put a Form parameter in Adodc Control Record Source property

10. ADP client can't open form, which has a stored procedure record source

11. Record Source in another Form?

12. Forms and Reports that require parameterized record source

13. ADP client can't open form, which has a stored procedure record source