Varibles and queries 
Author Message
 Varibles and queries

I'm using Access 97 and i have a form which gets data from a query that
uses Three varibles (ProdNa, BatchNo, and OrderCod) to search a table.
When I run this form access askes me to input the parametervalue for
each of these varibles. When I use this form as a subForm of another
form, then when the form is for the first time it asks me to enter a
parameter for these varibles, but if I run the form anytime after it
first run then I don't have to anter a parameter value and everything
works fine. In both forms I have the varibles defined as:

Public BatchNo As String, ProdNa As String, OrderCod As String

Any help will be appreciated



Fri, 27 Jun 2003 07:17:14 GMT  
 Varibles and queries


Quote:
> each of these varibles. When I use this form as a subForm of another
> form, then when the form is for the first time it asks me to enter a
> parameter for these varibles, but if I run the form anytime after it
> first run then I don't have to anter a parameter value and everything
> works fine. In both forms I have the varibles defined as:

subforms don't automatically refresh their underlying recordsets.
If you invoke the sub-forms Refresh or Requery methods, it will prompt
you again.

Sent via Deja.com
http://www.deja.com/



Sat, 28 Jun 2003 01:40:23 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Public Varibles and multible forms help.

2. Varibles in VB4

3. Using dos varibles in vb6

4. environmnet varibles

5. varibles not working

6. varibles stored to disk

7. Varibles across multipul forms

8. Using varibles in Pathnames.

9. how do I declare varibles for all subs ?

10. Passing varibles to Crystal reports

11. Public varibles

12. pass a vbscript varibles from command line

 

 
Powered by phpBB® Forum Software