Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need help getting query to run
Message
From
15/01/2002 12:56:51
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Need help getting query to run
Miscellaneous
Thread ID:
00604967
Message ID:
00604967
Views:
58
Hi all,

I have a data report that is relying on data provided in the DataEnv (dataenvironment) based on a query in an Access DB. The problem is that one portion of the query depends on a user supplied date value ie. 'WHERE Month(SampDate)=(Month(usersdate)'

I keep getting an ODBC error about too few parameters, expected 1. In Access if I'm asking for a user supplied value I get a inputbox asking for that value. In VB all I get is the error message.

How do I get and pass the date to the query so that I do not have to hardcode the SQL strings to run the query?

Thanks for your help
Reply
Map
View

Click here to load this message in the networking platform