HELP! Using queries w/ Data cotrol 
Author Message
 HELP! Using queries w/ Data cotrol

Hello:
I have a data control which I need to assign a query record set ,and I'm
using the example in the vb 4 help file, I ger error #3061, too few
parameters, expected 2...... This is the code:

Set Qd = Data1.Database.QueryDefs("StoredQuery")
Qd.Parameters!temTyp = 1
Qd.Parameters!ItemNo = "A"
Set Rs = Qd.OpenRecordset()
Set Data1.Recordset = Rs
Data1.Refresh

What is the problem? HELP!!!!!!!!!!
Thank you
SIlvio Brigliadoro
--
Thanks,
Silvio Brigliadoro



Sun, 30 May 1999 03:00:00 GMT  
 HELP! Using queries w/ Data cotrol

Quote:

>Hello:
>I have a data control which I need to assign a query record set ,and I'm
>using the example in the vb 4 help file, I ger error #3061, too few
>parameters, expected 2...... This is the code:

>Set Qd = Data1.Database.QueryDefs("StoredQuery")
>Qd.Parameters!temTyp = 1
>Qd.Parameters!ItemNo = "A"
>Set Rs = Qd.OpenRecordset()
>Set Data1.Recordset = Rs
>Data1.Refresh

>What is the problem? HELP!!!!!!!!!!

Hello Silvio,

You do not need to do the data1.Refresh, as you have already opened
the recordset with Set Rs = Qd.OpenRecordset() statement.

         Alan Davis, Southampton, England



Sun, 30 May 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Using queries with Data control HELP!!!!

2. Help with query using autonumbered data type in access

3. Need help on loading data into a FlexGrid using a query containing WHERE

4. Data Cotrol Question?

5. Data Cotrol (DAO) and Index

6. Data Cotrol (DAO) and Index

7. vb5 data cotrol sorting?

8. ADOC Data cotrol

9. help needed about databound cotrol

10. Relyionship Cotrol, help Please! Without Picture Attachment

11. Relyionship Cotrol, help Please! Without Picture Attachment

12. Relyionship Cotrol, help Please! Without Picture Attachment

 

 
Powered by phpBB® Forum Software