Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Parameters to Access View
Message
De
10/07/2003 23:22:22
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Passing Parameters to Access View
Divers
Thread ID:
00809104
Message ID:
00809104
Vues:
78
Hi to all,

I have an MS-Access Query that accepts a date parameter. If the view is opened in MS-Access, it works fine. You can enter for the parameter.

But how do I pass the parameter from VB Code to retrieve the Query?

Here is my Code:
   ObjCon.Open ConnectionString
   SQL = "SELECT * FROM qrySALES"
   Set RS = ObjCon.Execute(SQL)

   ... do something here...

   RS.Close
   ObjCon.Close
   Set RS = Nothing
   Set ObjCon = Nothing
Where:
qrySALES is a QUERY from MS-Access that accepts a date parameter.

I tried to place a WHERE clause in the SQL statement but it create a syntax error.

Thanks in Advance,

Noel
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform